From: Raymond Xie [mailto:xie3208080@gmail.com]
Sent: 30 March 2018 07:47
To: solr-user@lucene.apache.org; Hui Xie <xie3208080@gmail.com>
Subject: Need help to get started on Solr, searching get nothing. Thank you very much in advance
I am new to Solr, following Steve Rowe's example on https://github.com/apache/lucene-solr/tree/master/solr/example/films:
It would be greatly appreciated if anyone can enlighten me where to start troubleshooting, thank you very much in advance.
The steps I followed are:
Here ya go << END_OF_SCRIPT bin/solr stoprm server/logs/*.logrm -Rf server/solr/films/bin/solr startbin/solr create -c filmscurl http://localhost:8983/solr/films/schema -X POST -H 'Content-type:application/json' --data-binary '{
"add-field" : { "name":"name", "type":"text_general", "multiValued":false, "stored":true }, "add-field" : { "name":"initial_release_date", "type":"pdate", "stored":true }}'bin/post -c films example/films/films.jsoncurl http://localhost:8983/solr/films/config/params -H 'Content-type:application/json' -d '{
"update" : { "facets": { "facet.field":"genre" } }}' # END_OF_SCRIPT Additional fun - Add highlighting:curl http://localhost:8983/solr/films/config/params -H 'Content-type:application/json' -d '{
"set" : { "browse": { "hl":"on", "hl.fl":"name" } }}'try http://localhost:8983/solr/films/browse?q=batman now, and you'll see "batman" highlighted in the results
I got nothing in my search:
------------------------------------------------
Sincerely yours,
Raymond
No comments:
Post a Comment