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
content just for a few changes.

[1] http://code.google.com/p/solr-php-client/

On Fri, Aug 6, 2010 at 7:59 PM, twojah <e...@tokobagus.com> wrote:
>
> 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 tried these steps and the query resulted correct:
> 1. delete the index (<delete><query>AUC_CAT:978</query></delete>)
> 2. commit the new cat_978.xml (java -jar post.jar cat_978.xml)
> 3. restart the solr (stop and java -jar start.jar)
>
> the problem is how I can send those command from my php script since the
> script is run periodically every half minute via cron?
>
> this the full process of my php script and solr search to make you easier to
> understand:
> php script read the database -> php script create cat_978.xml -> php script
> delete the index -> commit the cat_978.xml -> restart the solr service
>
> those process run every half minute
> is there any simpler process?
>
> thanks in advance
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Query-Result-is-not-updated-based-on-the-new-XML-files-tp1028575p1031009.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