you should parse the xml and extract the value. Lot's of libraries
undoubtably exist for PHP to help you with that (I don't know PHP)

Moreover, if all you want from the result is AUC_CAT you should consider
using the fl=param like:
http://172.16.17.126:8983/search/select/?q=AUC_ID:607136&fl=AUC_CAT

to return a document of the form:

<doc>
<int name="AUC_CAT">576</int>
</doc>

which if more efficient.
Still you have to parse the doc with xml though.



<http://172.16.17.126:8983/search/select/?q=AUC_ID:607136>

2010/8/5 twojah <e...@tokobagus.com>

>
> this is my query in browser navigation toolbar
> http://172.16.17.126:8983/search/select/?q=AUC_ID:607136
>
> and this is the result in browser page:
> ...
> <doc>
> <int name="AP_AUC_PHOTO_AVAIL">1</int>
> <double name="AUC_AD_PRICE">1.0</double>
> <int name="AUC_CAT">576</int>
> <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>
>
> I want to get the AUC_CAT value (576) and using it in my PHP, how can I get
> that value?
> please help
> thanks before
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/how-to-take-a-value-from-the-query-result-tp1025119p1025119.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to