Organizational Research By

Surprising Reserch Topic questions - Question:hwo to make query in solr for search the data from solr database?

Querying Data

Searches are done via HTTP GET on the select URL with the query string in the q parameter. You can pass a number of optional request parameters to the request handler to control what information is returned. For example, you can use the "fl" parameter to control what stored fields are returned, and if the relevancy score is returned:

    q=video&fl=name,id (return only name and id fields)
    q=video&fl=name,id,score (return relevancy score as well)
    q=video&fl=*,score (return all stored fields, as well as relevancy score)
    q=video&sort=price desc&fl=name,id,price (add sort specification: sort by price descending)
    q=video&wt=json (return response in JSON format)

The query form provided in the web admin interface allows setting various request parameters and is useful when testing or debugging queries.

asked Sep 13, 2013 in SOLR by rajesh
edited Sep 12, 2013
0 votes

Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.