On 5/18/2011 9:07 PM, Chris Hostetter wrote:
You could implement a parser like that relatively easily -- just make sure
you put a MatchAllDocsQuery in every BooleanQuery object thta you
construct, and only ever use the PROHIBITED and MANDATORY clause types
(never OPTIONAL) ... the thing is, a pa
: Thanks Yonik. I recall hearing about this before, but was vague on the
: details, thanks for supplying some and refreshing my memory.
matching in Lucene is addative ... queries must match *something*, a
clause ofa boolean query can be the negation of a query, but that only
defines how documen
On 5/17/2011 8:00 PM, Yonik Seeley wrote:
This doesn't have to do with Solr's support of pure-negative top-level
queries, but does have to do with
a long standing confusion of how the lucene queryparser works with
some of the operators (i.e. not really boolean logic).
In a Lucene BooleanQuery, c
On Tue, May 17, 2011 at 6:57 PM, Jonathan Rochkind wrote:
> (changed subject for this topic). Weird. I'm seeing it wrong myself, and
> have for a while -- I even wrote some custom pre-processor logic at my app
> level to work around it. Weird, I dunno.
>
> Wait. "Queries with -one OR -two return
On 5/17/2011 7:07 PM, Markus Jelsma wrote:
This is propably due to the contents (HTML bodies) of the documents i've
queried. It's not so strange for this type of document to return less
documents when two negated operands are specified. In my case (i tested it) a
conjunction returned the same do
> (changed subject for this topic). Weird. I'm seeing it wrong myself, and
> have for a while -- I even wrote some custom pre-processor logic at my
> app level to work around it. Weird, I dunno.
>
> Wait. "Queries with -one OR -two return less documents than a either
> operand does on its own."
(changed subject for this topic). Weird. I'm seeing it wrong myself, and
have for a while -- I even wrote some custom pre-processor logic at my
app level to work around it. Weird, I dunno.
Wait. "Queries with -one OR -two return less documents than a either
operand does on its own."
Wait, t