Re: Query multiple fields using configured analyzer stack

2009-03-16 Thread Walter Underwood
Wow, I was thinking of writing this. I made some comments on a full-text query parser last week, I think. Is there an easy way to generate the query tree then have it rewritten with the DisMax field mapping? wunder On 3/16/09 8:22 AM, "Steven A Rowe" wrote: > Another way (that I've never used)

Re: Query multiple fields using configured analyzer stack

2009-03-16 Thread Tobias Dittrich
Hi Steve, thanks for your quick response. Quoting the string really is not a good idea in this case. And it does not what I need anyway since the query is converted into a PhraseQuery and treated differently. But thanks for pointing me to the FieldQParserPlugin. Yet I seem not to get it to

RE: Query multiple fields using configured analyzer stack

2009-03-16 Thread Steven A Rowe
Hi Tobi, On 3/16/2009 at 9:14 AM, Tobias Dittrich wrote: > how can I query multiple fields in such way that for each of > the fields the configured analyzer stack with Tokenizer is > used for the whole query string? Lucene's QueryParser (and AFAIK, Solr's QPs too) first break queries on whitespa

RE: Query multiple fields

2007-11-18 Thread Dave C .
okay thanks for the details - David > Date: Sun, 18 Nov 2007 22:14:23 -0500 > From: [EMAIL PROTECTED] > To: solr-user@lucene.apache.org > Subject: Re: Query multiple fields > > On Nov 18, 2007 9:58 PM, Dave C. <[EMAIL PROTECTED]> wrote: > > According to the

Re: Query multiple fields

2007-11-18 Thread Yonik Seeley
On Nov 18, 2007 9:58 PM, Dave C. <[EMAIL PROTECTED]> wrote: > According to the Lucene query syntax: > "The symbol && can be used in place of the word AND." So, I shouldn't have > to use 'AND'. Yes, but before the query parser can even get the query string, the servlet container parses query arg

RE: Query multiple fields

2007-11-18 Thread Dave C .
cene query syntax here: > > http://lucene.apache.org/java/docs/queryparsersyntax.html#Boolean%20operators > > Thanks, > Stu > > > -Original Message- > From: "Dave C." <[EMAIL PROTECTED]> > Sent: Sunday, November 18, 2007 1:50am > To:

RE: Query multiple fields

2007-11-18 Thread Stu Hood
q=description:test AND -type:10 AND -type:14 See the Lucene query syntax here: http://lucene.apache.org/java/docs/queryparsersyntax.html#Boolean%20operators Thanks, Stu -Original Message- From: "Dave C." <[EMAIL PROTECTED]> Sent: Sunday, November 18, 2007 1:50am To: solr-u

Re: Query multiple fields

2007-11-18 Thread Stuart Sierra
On Nov 18, 2007 1:50 AM, Dave C. <[EMAIL PROTECTED]> wrote: > Maybe you can help me with this related problem I am having. > My query is: q=description:(test)&&!(type:10)&&!(type:14). > > However, my results are not as expected (55 results instead of the expected > 23) > > The response header show

RE: Query multiple fields

2007-11-17 Thread Dave C .
l":"*"}}, I am confused about why the "&&!(type:10)&&!(type:14)" is not in the 'q' parameter. Any ideas? Thanks, David > From: [EMAIL PROTECTED] > To: solr-user@lucene.apache.org > Subject: RE: Query multiple fields > Dat

RE: Query multiple fields

2007-11-17 Thread Dave C .
oh, awesome thanks -david > Date: Sun, 18 Nov 2007 15:24:00 +1300 > From: [EMAIL PROTECTED] > To: solr-user@lucene.apache.org > Subject: Re: Query multiple fields > > Hi David > You had it write in your example :) > > description:test AND type:10 > > But

Re: Query multiple fields

2007-11-17 Thread Nick Jenkin
Hi David You had it write in your example :) description:test AND type:10 But it would probably be wise to wrap any text in parenthesis: description:(test foo bar baz) AND type:10 You can find more info on the query syntax here: http://lucene.apache.org/java/docs/queryparsersyntax.html -Nick On