Re: lucene 4.0.0 range query broken?

2014-07-16 Thread Jamie
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

Re: lucene 4.0.0 range query broken?

2014-07-16 Thread Jamie
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

RE: lucene 4.0.0 range query broken?

2014-07-16 Thread Uwe Schindler
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

RE: lucene 4.0.0 range query broken?

2014-07-16 Thread Uwe Schindler
://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

RE: lucene 4.0.0 range query broken?

2014-07-16 Thread Uwe Schindler
, 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

Re: lucene 4.0.0 range query broken?

2014-07-16 Thread Jamie
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

RE: lucene 4.0.0 range query broken?

2014-07-16 Thread Uwe Schindler
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

Re: lucene 4.0.0 range query broken?

2014-07-16 Thread Jamie
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

Re: lucene 4.0.0 range query broken?

2014-07-16 Thread Jamie
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

Re: lucene 4.0.0 range query broken?

2014-07-16 Thread Jamie
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

RE: lucene 4.0.0 range query broken?

2014-07-16 Thread Uwe Schindler
> -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

Re: lucene 4.0.0 range query broken?

2014-07-16 Thread Jamie
+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

Re: lucene 4.0.0 range query broken?

2014-07-16 Thread Jamie
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

lucene 4.0.0 range query broken?

2014-07-16 Thread Jamie
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

help for Lucene 4.0.0

2013-05-30 Thread mary meriem
??I'm working with Lucene 4.0.0. thank you.

RE: lucene 4.0.0

2013-05-24 Thread mary meriem
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

Re: lucene 4.0.0

2013-05-24 Thread Brendan Grainger
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

RE: lucene 4.0.0

2013-05-24 Thread mary meriem
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, > &

RE: lucene 4.0.0

2013-05-24 Thread mary meriem
I'll try to see how inculre with my code, thank you very much.

Re: lucene 4.0.0

2013-05-24 Thread Brendan Grainger
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

Re: lucene 4.0.0

2013-05-24 Thread Michael McCandless
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

lucene 4.0.0

2013-05-24 Thread mary meriem
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

Re: BlockJoin and RawTermFilter (lucene 4.0.0)

2013-01-17 Thread Michael McCandless
= 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

Re: BlockJoin and RawTermFilter (lucene 4.0.0)

2013-01-17 Thread Martijn v Groningen
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

BlockJoin and RawTermFilter (lucene 4.0.0)

2013-01-16 Thread kiwi clive
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

Why Lucene 4.0.0 FilterAtomicReader terms method is final?

2013-01-15 Thread Jean-Claude Dauphin
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

Lucene 4.0.0 - find offsets for phrase queries

2012-12-18 Thread Vitaly_Artemov
Hi all, Is it possible to find offsets for phrase queries? Thanks, Vitaly

Lucene 4.0.0 - find offsets for phrase queries

2012-12-17 Thread Vitaly_Artemov
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

Re: Lucene 4.0.0 - find term position.

2012-12-07 Thread Adrien Grand
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

RE: Lucene 4.0.0 - find term position.

2012-12-07 Thread Vitaly_Artemov
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

Re: Lucene 4.0.0 - find term position.

2012-12-06 Thread lukai
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

Lucene 4.0.0 - find term position.

2012-12-06 Thread Vitaly_Artemov
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

Re: Is there some class to iterate on document's term positions in Lucene 4.0.0?

2012-10-25 Thread Ivan Vasilev
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

Re: Is there some class to iterate on document's term positions in Lucene 4.0.0?

2012-10-25 Thread Ian Lea
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

Re: Is there some class to iterate on document's term positions in Lucene 4.0.0?

2012-10-25 Thread Robert Muir
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

Is there some class to iterate on document's term positions in Lucene 4.0.0?

2012-10-25 Thread Ivan Vasilev
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