Re: Query Result is not updated based on the new XML files

2010-08-06 Thread Andrei Savu
Yes. First of all you should use a Solr PHP client [1] to send the changes you need. A better approach is to add hooks to your application that will update the Solr index as needed. By doing this you improve the efficiency of the process a lot. It doesn't really make sense to re-index all the cont

Re: Query Result is not updated based on the new XML files

2010-08-06 Thread twojah
Hi Andrei, yes that's what I meant, the query result reflect the changes that I or the script made in cat_978.xml which is not happen right now I already commit it after the cat_987.xml changed, but the old xml file still showed in query result, in other words the ID: 618436123 still there. I tri

Re: Query Result is not updated based on the new XML files

2010-08-06 Thread Andrei Savu
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 r

Re: Query Result is not updated based on the new XML files

2010-08-06 Thread Dave Searle
Did you commit your changes? On 6 Aug 2010, at 04:52, twojah 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: