lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Help with Shingled queries
Date Mon, 14 Jun 2010 20:21:03 GMT

: the queryparser first splits on whitespace.

FWIW: robert is refering to the LuceneQParser, and it also applies to the 
DismaxQParser ... whitespace is considered markup in those parsers unless 
it's escaped or quoted.

The FieldQParser may make more sense for your usecase - or you may need a 
custom QParser (hard to tell)

To answer your specific question...

: > the debug output, for example with the term "short red evil fox" I would
: > expect
: > to see the shingles
: > 'short_red' 'red_evil' 'evil_fox'
: >
: > but instead I get the following
: >
: > "debug":{
: >  "rawquerystring":"short red evil fox",
: >  "querystring":"short red evil fox",
: >  "parsedquery":"+() ()",
: >  "parsedquery_toString":"+() ()",
: >  "explain":{},
: >  "QParser":"DisMaxQParser",

...you are using the DisMaxQParser, but evidently you haven't configured 
the qf or pf fields, so you are getting a query that is completley empty.



-Hoss


Mime
View raw message