Apache Solr Search Patterns by Kumar Jayant

Apache Solr Search Patterns by Kumar Jayant

Author:Kumar, Jayant
Language: eng
Format: epub, azw3
Publisher: Packt Publishing
Published: 2015-04-24T04:00:00+00:00


Also, the key field needs to be marked as unique, as the key contains fields that are unique:

<uniqueKey>key</uniqueKey>

Also, we will need to change the default search field to value in the solrconfig.xml file for the dictionary core. For the request handler named /select, make the following change:

<str name="df">value</str>

Once the schema is defined, we need to restart Solr to see the new core on our Solr interface.

New core in Solr

In order to populate the dictionary index, we will need to upload the data_dictionary.csv file onto our index. The following command performs this function. Windows users can use the Solr admin interface to upload the CSV file:

curl "http://localhost:8983/solr/dictionary/update/csv?commit=true&f.value.split=true" --data-binary @data_dictionary.csv -H 'Content-type:application/csv; charset=utf-8'



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.