Sorry to suggest that it was a Lucene bug. It is rare we encounter
Lucene bugs - a testament to your code quality. Much appreciate!
On 2014/07/16, 12:33 PM, Jamie wrote:
Uwe
Thank you.
I think your earlier hint regarding precision steps solved it. I
noticed that new Long was created with a
Uwe
Thank you.
I think your earlier hint regarding precision steps solved it. I
noticed that new Long was created with a precision step of 4, but my
range query was creating precision step of 8.
return NumericRangeQuery.newLongRange(field.getIndexField(), 8,
Long.parseLong(query.getLowerTe
Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: Jamie [mailto:ja...@mailarchiva.com]
> Sent: Wednesday, July 16, 2014 12:21 PM
> To: java-user@lucene.apache.org
> Subject: Re: lucene 4.0.0 ran
://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: Jamie [mailto:ja...@mailarchiva.com]
> Sent: Wednesday, July 16, 2014 12:09 PM
> To: java-user@lucene.apache.org
> Subject: Re: lucene 4.0.0 range query broken?
>
> Here it is
>
> return Num
, 2014 11:15 AM
> To: java-user@lucene.apache.org
> Subject: lucene 4.0.0 range query broken?
>
> Hi
>
> I have a situation whereby the following filter query works with Lucene
> 3.8.1
>
> ChainedFilter: [QueryWrapperFilter(+receivedate:[201407
Uwe
The range query works with lindexes created by 3.8.1, but not 4.0.0. To
me, this indicates that Lucene 4.0.0 is not indexing these longs
correctly, or something of the sort. Do you have any ideas on where to
look?
Jamie
On 2014/07/16, 12:15 PM, Uwe Schindler wrote:
Sorry, no you
rg
> Subject: Re: lucene 4.0.0 range query broken?
>
> Uwe
>
> is there anyway we can downgrade to 3.8.1 while being able to read indexes
> created from 4.0.0?
>
> On 2014/07/16, 11:45 AM, Uwe Schindler wrote:
> > If you index as a long field, you have to
Uwe
is there anyway we can downgrade to 3.8.1 while being able to read
indexes created from 4.0.0?
On 2014/07/16, 11:45 AM, Uwe Schindler wrote:
If you index as a long field, you have to use NumericRangeQuery to query. A
simple TermRangeQuery as created by QueryParser does not work, because
Here it is
return NumericRangeQuery.newLongRange(field.getIndexField(), 8,
Long.parseLong(query.getLowerTerm().utf8ToString()),
Long.parseLong(query.getUpperTerm().utf8ToString()),
query.includesLower(), query.includesUpper());
Range query appears broken in Lucene 4.0.0.
On
Uwe
Thanks for the suggestion.
When I inspect the query in Eclipse, I can clearly see that a
NumericRangeQuery is constructed.
Why would this query work in an older version of Lucene but not 4.0.0.?
Jamie
On 2014/07/16, 11:45 AM, Uwe Schindler wrote:
If you index as a long field, you have
> -Original Message-
> From: Jamie [mailto:ja...@mailarchiva.com]
> Sent: Wednesday, July 16, 2014 11:43 AM
> To: java-user@lucene.apache.org
> Subject: Re: lucene 4.0.0 range query broken?
>
> All
>
> As a further to the below.
>
> We are able to search by range q
+cat:email)
Thus, in our mind, Lucene 4.0.0 range query is broken. We tried to
downgrade to v3.8.1, but it wont read indexes created by 4.0.0.
Any recommendations on how to get out of this bind?
Jamie
On 2014/07/16, 11:15 AM, Jamie wrote:
Hi
I have a situation whereby the following filter q
Hi
This query does not work either:
QueryWrapperFilter(+archivedate:[20140708 TO 20140731] +cat:email)
Thus, in our mind, Lucene 4.0.0 range query is broken. We tried to
downgrade to v3.8.1, but it wont read indexes created by 4.0.0.
Any recommendations on how to get out of this
Hi
I have a situation whereby the following filter query works with Lucene
3.8.1
ChainedFilter: [QueryWrapperFilter(+receivedate:[20140701 TO
20140731] +cat:email)
org.apache.lucene.sandbox.queries.DuplicateFilter@6a894d44 ]
With Lucene 4.0.0, the query always returns zero results
??I'm working with
Lucene 4.0.0. thank you.
yes thank you
> Date: Fri, 24 May 2013 18:59:13 -0400
> Subject: Re: lucene 4.0.0
> From: brendan.grain...@gmail.com
> To: java-user@lucene.apache.org
>
> According to:
> http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/index/IndexReader.html#leaves()it
> is
According to:
http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/index/IndexReader.html#leaves()it
is.
On Fri, May 24, 2013 at 6:49 PM, mary meriem wrote:
>
>
> I have a problem with AtomicReader reader =
> indexReader.leaves().get(0).reader(); it is topical in
I have a problem with AtomicReader reader =
indexReader.leaves().get(0).reader(); it is topical in Lucene 4.0.0??
> Date: Fri, 24 May 2013 13:41:05 -0400
> Subject: Re: lucene 4.0.0
> From: brendan.grain...@gmail.com
> To: java-user@lucene.apache.org
>
> Hi Mary,
>
&
I'll try to see how inculre with my code, thank you very much.
exWriter indexWriter = new IndexWriter(indexDir,
new IndexWriterConfig(VERSION, new
WhitespaceAnalyzer(VERSION)));
addDocs(indexWriter);
indexWriter.commit();
indexWriter.close();
}
public static void main(String[] args) throws Exception {
CountingTerms ct = new Counti
On Fri, May 24, 2013 at 12:14 PM, mary meriem wrote:
> hii am mary and i have a problem with lucene, Actually a work with lucene
> 4.0.0, my problem is, how can I more listed all the terms, the display
> position for each term in each document and their frequency?pl
hii am mary and i have a problem with lucene, Actually a work with lucene
4.0.0, my problem is, how can I more listed all the terms, the display position
for each term in each document and their frequency?please help
= new CachingWrapperFilter(new
>> RawTermFilter(new Term("type", "T1")), true);
>>
>> Having moved to lucene 4.0.0, I cannot find the RawTermFilter class. It may
>> be in another module but I have not been able to find it. Is this filter
>> still requ
ter parentQueryFilter = new CachingWrapperFilter(new
> RawTermFilter(new Term("type", "T1")), true);
>
> Having moved to lucene 4.0.0, I cannot find the RawTermFilter class. It may
> be in another module but I have not been able to find it. Is this filter
> still required
CachingWrapperFilter(new
RawTermFilter(new Term("type", "T1")), true);
Having moved to lucene 4.0.0, I cannot find the RawTermFilter class. It may be
in another module but I have not been able to find it. Is this filter still
required for BlockJoin as the Join API does not seem to have
Hi,
I don't understand why the FilterAtomicReader method is declared as final
while the TestFilterAtomicReader test overrides the terms method.
I may have missed something, any help would be welcome
Best wishes,
JCD
--
Jean-Claude Dauphin
jc.daup...@gmail.com
jc.daup...@afus.unesco.org
http
Hi all,
Is it possible to find offsets for phrase queries?
Thanks, Vitaly
Hi all,
I use Lucene 4.0.
I try to find offsets for phrase queries.
My code works then I search for one word but then I call it for some phrase I
didn't get offsets.
termsEnum.seekExact returns false for phrase queries.
reader = DirectoryReader.open( mIndexDir );
IndexSearcher sear
Hi Vitaly,
On Fri, Dec 7, 2012 at 3:24 PM, wrote:
> I try to use or Terms tfvector = reader.getTermVector(docId, "contents");
> or Fields fields = reader.getTermVectors(docId);
> but I get null from these calls.
> What is wrong?
These methods will always return null unless you turn term vect
java-user@lucene.apache.org
Subject: Re: Lucene 4.0.0 - find term position.
terms = fileds.terms(...);
termsEnum = terms.iterator(null);
termsEnum.seekExat(...);
docsAndPositionsEnum docsPosEnum = termsEnum.docsAndPositions(...);
You can get the information in "docsPosEnum".
On Thu, De
terms = fileds.terms(...);
termsEnum = terms.iterator(null);
termsEnum.seekExat(...);
docsAndPositionsEnum docsPosEnum = termsEnum.docsAndPositions(...);
You can get the information in "docsPosEnum".
On Thu, Dec 6, 2012 at 2:28 AM, wrote:
> Hi all,
> I am new with Lucene.
> I try to understand
Hi all,
I am new with Lucene.
I try to understand how can I find the term position.
I use following code to index documents:
...
IndexWriter writer = new IndexWriter(mIndexDir, mIwc);
FileInputStream fis;
fis = new FileInputStream(file);
Document doc
the answer to your second question.
--
Ian.
On Thu, Oct 25, 2012 at 2:50 PM, Ivan Vasilev wrote:
Hy Guys,
In previous versions of Lucene there was a class TermPositions that could be
obtained form IndexReader.
Is there something that replaces it in Lucene 4.0.0?
Also is there some documentation t
gt; Hy Guys,
>
> In previous versions of Lucene there was a class TermPositions that could be
> obtained form IndexReader.
> Is there something that replaces it in Lucene 4.0.0?
>
> Also is there some documentation that describes how to use Lucene 4.0.0
> until next release of
On Thu, Oct 25, 2012 at 9:50 AM, Ivan Vasilev wrote:
> Hy Guys,
>
> In previous versions of Lucene there was a class TermPositions that could be
> obtained form IndexReader.
> Is there something that replaces it in Lucene 4.0.0?
>
> Also is there some documentation that
Hy Guys,
In previous versions of Lucene there was a class TermPositions that
could be obtained form IndexReader.
Is there something that replaces it in Lucene 4.0.0?
Also is there some documentation that describes how to use Lucene 4.0.0
until next release of Lucene in Action book would be
36 matches
Mail list logo