Organizational Research By

Surprising Reserch Topic

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
72 views



Related Hot Questions



Government Jobs Opening


...