Threads and LuceneTestCase in 3.6.0

2013-10-31 Thread Benson Margulies
I just backported some code to 3.6.0, and it includes tests that use org.apache.lucene.analysis.BaseTokenStreamTestCase#checkRandomData(java.util.Random, org.apache.lucene.analysis.Analyzer, int, int) The tests that use this method fail in 3.6.0 in ways that suggest that multiple threads are hitt

NumericField and PerFieldAnalyzer

2013-10-31 Thread Vielsack, Marcel
Hey there, I’m struggling with NumericRangeQueries in combination with a PerFieldAnalyzerWrapper. My documents containing a IntField called “age”. I’m sure that there is a document contain the value 42 in field age. If I place a query like age:42 there is no hit If I do a range query like age:

Re: trm.seekCeil() not giving proper value when used in MP Query for some words

2013-10-31 Thread Michael McCandless
You can instantiate StandardAnalyzer, passing an empty stopwords set. Or make a custom analyzer that doesn't insert StopFilter ... I'm not aware of any changes in how WhitespaceAnalyzer(Tokenizer) tokenizes between 3.6.x and 4.x; both versions seem to use Character.isWhitespace to detect which cha

Re: trm.seekCeil() not giving proper value when used in MP Query for some words

2013-10-31 Thread VIGNESH S
Hi Mike, I can not use other analyzers since they involve stop words.. I need to just index every word.. I have used WhitespaceAnalyer in Lucene 3.6 and it is indexing properly..But this problem iam facing in Lucene 4.3 only.. Thanks and Regards Vignesh Srinivasan On Thu, Oct 31, 2013 at 4:1

Re: Lucene in-memory index

2013-10-31 Thread Michael McCandless
On Fri, Oct 25, 2013 at 9:58 AM, Igor Shalyminov wrote: > What is ProxBooleanTermQuery? > I couldn't find it in the trunk and in that ticket's > (https://issues.apache.org/jira/browse/LUCENE-2878) patch. Sorry, this is on https://issues.apache.org/jira/browse/LUCENE-5288 Next time try searchin

Re: Index + Taxonomy Replication

2013-10-31 Thread Michael McCandless
Maybe have a look at how the IndexAndTaxonomyReplicationClientTest.java works? Hmm, in its callback, it manually reopens the index + taxoIndex, but I think you could instead use a SearcherTaxonomyManager and call its .maybeRefresh inside your callback? Mike McCandless http://blog.mikemccandless.

Re: trm.seekCeil() not giving proper value when used in MP Query for some words

2013-10-31 Thread Michael McCandless
Pick a better analyzer. Maybe StandardAnalyzer? Mike McCandless http://blog.mikemccandless.com On Thu, Oct 31, 2013 at 2:22 AM, VIGNESH S wrote: > Hi Mike, > > I am using white space analyzer with lower case filter. The test code is > same as i send above. > > The contents i am indexing is >