Hi Romi,
When querying the Solr index, use 'wt=json' as part of your query string to
get the results back in json format.
On Tue, May 31, 2011 at 11:35 AM, Romi wrote:
> I have indexed all my database data in solr, now I want to rum search on it
> and display results in JSON. what i need to do
I am little confused about your question.
Incase you are looking to access the json object returned by solr, decode
the json object using a programming language of you choice. The document set
can be accessed using $json['response']['docs'](in PHP). This is an array of
hashes(associative arrays).
Can you specify the analyzer you are using for your queries?
May be you could use a KeywordAnalyzer for your queries so you don't end up
matching parts of your query.
http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/
This should help you.
On Tue,
Instead of integrating zookeeper, you could create shards over multiple
machines and specify the shards while you are querying solr.
Eg: http://localhost:8983/solr/select?shards=*:/,*
*:/*&indent=true&q=
On Mon, Jun 6, 2011 at 5:59 PM, Mohammad Shariq wrote:
> Hi folk,
> I am using solr to inde