Norconex / crawlers

Norconex Crawlers (or spiders) are flexible web and filesystem crawlers for collecting, parsing, and manipulating data from the web or filesystem to various data repositories such as search engines.
https://opensource.norconex.com/crawlers
Apache License 2.0
183 stars 68 forks source link

Adding Solr parameters to the committer #8

Closed kalhomoud closed 11 years ago

kalhomoud commented 11 years ago

Hello,

Sometimes we need to pass parameters with Solr Commiter URL. This is very useful especially when dealing with something like LucidWorks.

Here is an example of what would be done:

http://127.0.0.1:8888/solr/collection1 par1, par2 <---- to be added support_url body 5 5

SolrInputDocument doc = new SolrInputDocument(); doc.addField("id", "1234"); doc.addField("body", "test"); SolrServer server = new CommonsHttpSolrServer("http://localhost:8888/solr/collection1"); UpdateRequest req = new UpdateRequest(); req.setParam("par1", someValue); <---- to be added for parameters

Thanks, Khalid

essiembre commented 11 years ago

Implemented and committed. Please test and confirm it is working. If you are not building from code and need a new JAR created, let me know and I will create one. Thanks!

kalhomoud commented 11 years ago

Thanks! The parameter implementation was tested and seems to be working. Closing the ticket.