Re: dih fetching but not adding records to index
quick question if i want to just load document with id=2 how would that work? I tried xpath expression that works with xpath tools but not in solr. How would i do this? dataConfig dataSource type=FileDataSource / document entity name=f processor=FileListEntityProcessor baseDir=c:\temp fileName=promotions.xml recursive=false rootEntity=false dataSource=null entity name=x processor=XPathEntityProcessor forEach=/add/doc url=${f.fileAbsolutePath} pk=id field column=id xpath=/add/doc/[id=2]/id/ /entity /entity /document /dataConfig -- View this message in context: http://lucene.472066.n3.nabble.com/dih-fetching-but-not-adding-records-to-index-tp3189438p3211083.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: dih fetching but not adding records to index
thanks!! it worked. I was just wondering if xpath can be used to use process default xml format for solr index doc -- View this message in context: http://lucene.472066.n3.nabble.com/dih-fetching-but-not-adding-records-to-index-tp3189438p3198705.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: dih fetching but not adding records to index
On Fri, Jul 22, 2011 at 12:42 AM, abhayd ajdabhol...@hotmail.com wrote: hi I m trying to load data into solr index from a xml file using dih my promotions.xml file -- add doc field name=id3/field /doc doc field name=id4/field /doc /add [...] This is already a complete SolrXML file, and you do not need DIH. Instead, use post.sh in example/exampledocs in your Solr distribution. With Solr running in the embedded Jetty server, the command would be: ./post.sh promotions.xml If you are running Solr in some other fashion, please modify post.sh as needed. Regards, Gora
Re: dih fetching but not adding records to index
hi thanks for the response I am aware of post.sh but i wanted to make use of dih and scheduling. We can not use cron due to some other issues. So was thinking of using scheduling Data import -- View this message in context: http://lucene.472066.n3.nabble.com/dih-fetching-but-not-adding-records-to-index-tp3189438p3197874.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: dih fetching but not adding records to index
On Mon, Jul 25, 2011 at 9:36 PM, abhayd ajdabhol...@hotmail.com wrote: hi thanks for the response I am aware of post.sh but i wanted to make use of dih and scheduling. We can not use cron due to some other issues. So was thinking of using scheduling Data import [...] OK, though in that case the add/add are superfluous in the XML file. Also, DIH uses the tag itself in the XML file rather than the name attribute. Thus, your XML should look like: -- add doc id3/id /doc doc id4/id /doc /add - Regards, Gora