lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Hebbrecht <jochenhebbre...@gmail.com>
Subject TermRangeQuery with multiple words
Date Mon, 20 Aug 2012 11:59:05 GMT
Hi,

I have 5 documents. Each document has a field TEST. Total structure is
looking like this:

Doc 01: TEST: "test 1 string"
Doc 02: TEST: "test 2 string"
Doc 03: TEST: "test 3 string"
Doc 04: TEST: "test 4 string"
Doc 05: TEST: "test 5 string"

These fields are indexed as Index.Analyzed with the StandardAnalyzer.
With Luke, I can see for example:

Document: Doc 01
Field: TEST
Terms: test, 1, string

But now I want to make rangesearch as:

<<
new TermRangeQuery("TEST", "test 1", "test 3", true, true);
>>

... to pickup the first 3 documents. Unfortunately, this doesn't seem to
work for multiple words.

Can somebody help me correcting my TermRangeQuery?

Thanks!
Jochen

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message