Re: About Query Parser

2014-06-27 Thread Vivekanand Ittigi
That's impressive answer. I actually wanted to know how exactly query parser works. I'm actually supposed to collect some fields,values,other related info and build a solr query. I wanted to know i should use this queryparser or java code to build solr query. Anyway it looks i've to go with java co

Re: About Query Parser

2014-06-20 Thread Daniel Collins
I would say "*:*" is a human-readable/writable query. as is "inStock:false". The former will be converted by the query parser into a MatchAllDocsQuery which is what Lucene understands. The latter will be converted (again by the query parser) into some query. Now this is where *which* query parse

Re: About Query Parser

2014-06-20 Thread Vivekanand Ittigi
All right let me put this. http://192.168.1.78:8983/solr/collection1/select?q=inStock:false&facet=true&facet.field=popularity&wt=xml&indent=true . I just want to know what is this form. is it lucene query or this query should go under query parser to get converted to lucene query. Thanks, Vivek

Re: About Query Parser

2014-06-20 Thread Alexandre Rafalovitch
That's *:* and a special case. There is no scoring here, nor searching. Just a dump of documents. Not even filtering or faceting. I sure hope you have more interesting examples. Regards, Alex On 20/06/2014 6:40 pm, "Vivekanand Ittigi" wrote: > Hi Daniel, > > You said inputs are "human-genera

Re: About Query Parser

2014-06-20 Thread Vivekanand Ittigi
Hi Daniel, You said inputs are "human-generated" and outputs are "lucene objects". So my question is what does the below query mean. Does this fall under human-generated one or lucene.? http://localhost:8983/solr/collection1/select?q=*%3A*&wt=xml&indent=true Thanks, Vivek On Fri, Jun 20, 2014

Re: About Query Parser

2014-06-20 Thread Daniel Collins
Alexandre's response is very thorough, so I'm really simplifying things, I confess but here's my "query parsers for dummies". :) In terms of inputs/outputs, a QueryParser takes a string (generally assumed to be "human generated" i.e. something a user might type in, so maybe a sentence, a set of wo

Re: About Query Parser

2014-06-20 Thread Alexandre Rafalovitch
I am going to have a go at this. Maybe others can add/correct. When you make a request to Solr, it hits a request handler first. E.g. a "/select" request handler. That's defined in solrconfig.xml The request handler can change your request with some defaults, required and overriding parameters.

About Query Parser

2014-06-20 Thread Vivekanand Ittigi
Hi, I think this might be a silly question but i want to make it clear. What is query parser...? What does it do.? I know its used for converting query. But from What to what?what is the input and what is the output of query parser. And where exactly this feature can be used? If possible please