You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by twojah <eb...@tokobagus.com> on 2010/08/05 03:48:56 UTC

XML Format

<doc>
<int name="AP_AUC_PHOTO_AVAIL">1</int>
<double name="AUC_AD_PRICE">1.0</double>
<int name="AUC_CLIENT_ID">27017</int>
<str name="AUC_DESCR_SHORT">Bracket Ceiling untuk semua merk projector,
panjang 60-90 cm  Bahan Besi Cat Hitam = 325rb Bahan Sta</str>
<str
name="AUC_HTML_DIR_NL">/aksesoris-batere-dan-tripod/update-bracket-projector-dan-lcd-plasma-tv-607136.html</str>
<int name="AUC_ID">607136</int>
<str name="AUC_ISNEGO">Nego</str>
<int name="AUC_LOCATION">7</int>
<str name="AUC_PHOTO">270/27017/bracket_lcd_plasma_3a-1274291780.JPG</str>
<str name="AUC_START">2010-05-19 17:56:45</str>
<str name="AUC_TITLE">[UPDATE] BRACKET Projector dan LCD/PLASMA TV</str>
<int name="AUC_TYPE2">1</int>
<int name="PRO_BACKGROUND">0</int>
<int name="PRO_BOLD">0</int>
<int name="PRO_COLOR">0</int>
<int name="PRO_GALLERY">0</int>
<int name="PRO_LINK">0</int>
<int name="PRO_SPONSOR">0</int>
<int name="cat_id_sub">0</int>
<int name="sectioncode">28</int>
</doc>

above is my recent XML list, I can't do search for example searching
"bracket" word, it will return empty list, so after I search on the
internet, I found out that there is a mistake in my XML Schema, I should
change the schema so it will return a list below (see the bold one):

<doc>
<int name="AP_AUC_PHOTO_AVAIL">1</int>
<double name="AUC_AD_PRICE">1.0</double>
<int name="AUC_CLIENT_ID">27017</int>
<arr name="AUC_DESCR_SHORT"><str>Bracket Ceiling untuk semua merk projector,
panjang 60-90 cm  Bahan Besi Cat Hitam = 325rb Bahan Sta</str></arr>
<str
name="AUC_HTML_DIR_NL">/aksesoris-batere-dan-tripod/update-bracket-projector-dan-lcd-plasma-tv-607136.html</str>
<int name="AUC_ID">607136</int>
<str name="AUC_ISNEGO">Nego</str>
<int name="AUC_LOCATION">7</int>
<str name="AUC_PHOTO">270/27017/bracket_lcd_plasma_3a-1274291780.JPG</str>
<str name="AUC_START">2010-05-19 17:56:45</str>
<arr name="AUC_TITLE"><str>[UPDATE] BRACKET Projector dan LCD/PLASMA
TV</str></arr>
<int name="AUC_TYPE2">1</int>
<int name="PRO_BACKGROUND">0</int>
<int name="PRO_BOLD">0</int>
<int name="PRO_COLOR">0</int>
<int name="PRO_GALLERY">0</int>
<int name="PRO_LINK">0</int>
<int name="PRO_SPONSOR">0</int>
<int name="cat_id_sub">0</int>
<int name="sectioncode">28</int>
</doc>

my question is, how to change my Schema so it will return the list like the
one above that I bold?
thanks before
-- 
View this message in context: http://lucene.472066.n3.nabble.com/XML-Format-tp1024608p1024608.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: XML Format

Posted by Geert-Jan Brits <gb...@gmail.com>.
at first glance I see no difference between the 2 documents.
Perhaps you can illustrate which fields are not in the resultset that you
want to be there?

also use the 'fl'-param to describe which fields should be outputted in your
results.
Of course, you have to first make sure the fields you want outputted are
stored to begin with.

http://wiki.apache.org/solr/CommonQueryParameters#fl
<http://wiki.apache.org/solr/CommonQueryParameters#fl>

2010/8/6 twojah <eb...@tokobagus.com>

>
> can somebody help me please....
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/XML-Format-tp1024608p1028456.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Re: XML Format

Posted by twojah <eb...@tokobagus.com>.
can somebody help me please....
-- 
View this message in context: http://lucene.472066.n3.nabble.com/XML-Format-tp1024608p1028456.html
Sent from the Solr - User mailing list archive at Nabble.com.