Click here to Skip to main content
15,889,475 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have such schema of core:
XML
<fields>
  <field name="Id" type="string" indexed="true" stored="true" required="true" />
  <field name="Date" type="date" indexed="false" stored="true" required="true"/>
  <field name="SearchWord" type="string" indexed="false" stored="true" required="true" />
  <field name="PartnerNr" type="int" indexed="true" stored="false" required="true" />
  <field name="CategoryNr" type="int" indexed="true" stored="false" required="true" />
  <field name="ArticlesCount" type="int" indexed="false" stored="true" required="true" />
</fields>

I need to insert document if there is no such in core or update Date and increment ArticlesCount if document exists.

How can I do it with SolrJ or send some http requests from DataImportHandler?
Posted
Updated 16-Oct-13 4:47am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900