How can I search something using Solr? I have setup the Solr server in Apache and want to search in database (MySQL). I have indexed data successfully but don’t know how to perform searching. Does anyone know about this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest and fasted way (out of the box) to search, is the Solr Admin Interface.
If your solr-instance is running on port 8080, so try the following:
http://localhost:8080/solr/admin/
Here you can insert the query. The result will be XML code.
If you wanna use solr into an application, so it depends on the programming language, how to realize an search. Finlay your objects/procedures/functions -what ever- will generate an solr URL where the search parameter are inside the url, like that:
http://localhost:8080/solr/select/?q=foo