As I understand you expect that when re-indexing the cat_978.xml file
the document with the ID: 618436123 should disappear. It doesn't work
that way.

You need to do an explicit document delete request. The Solr index
it's not recreated from scratch every time when you post a new .xml
file.

Also remember to commit you changes as Dave suggested.

On Fri, Aug 6, 2010 at 6:51 AM, twojah <e...@tokobagus.com> wrote:
>
> hi everyone,
> I run the query from the browser:
> http://172.16.17.126:8983/search/select/?q=AUC_CAT:978
>
> the query is based on cat_978.xml which was produced by my PHP script
> and I got the correct result like this:
> <response>
>  <lst name="responseHeader">
>    <int name="status">0</int>
>    <int name="QTime">4</int>
>    <lst name="params">
>      <str name="q.op">AND</str>
>      <str name="fl">AUC_ID,AUC_CAT,AUC_DESCR_SHORT</str>
>      <str name="start">0</str>
>      <str name="q">AUC_CAT:978</str>
>      <str name="rows">1000</str>
>    </lst>
>  </lst>
>  <result name="response" numFound="1575" start="0">
>    <doc>
>      <int name="AUC_CAT">978</int>
>      <str name="AUC_DESCR_SHORT">HP Compaq Presario V3700Core 2 duo webcam
> wifi lan HD 160Gb DDR2 1Gb Tas original windows 7 ultimate</str>
>      <int name="AUC_ID">618436123</int>
>    </doc>
>    <doc>
>      <int name="AUC_CAT">978</int>
>      <str name="AUC_DESCR_SHORT">HP Compaq Presario V3700Core 2 duo webcam
> wifi lan HD 160Gb DDR2 1Gb Tas original windows 7 ultimate</str>
>      <int name="AUC_ID">618436</int>
>    </doc>
>  </result>
> </response>
>
> now, I edit the AUC_ID field in cat_978.xml, I change 618436123 to 618436
> (look the bold letters above)
> and I refresh the browser but it doesn't updated or reflect the changes I
> was made
> how to make the query result updated exactly based on cat_978.xml changes?
>
> really need your help
> thanks before
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Query-Result-is-not-updated-based-on-the-new-XML-files-tp1028575p1028575.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Indekspot -- http://www.indekspot.com -- Managed Hosting for Apache Solr

Reply via email to