Re: Depreciated IntField field in v6

2016-04-15 Thread Greg Huber
Thanks, guess I should have been using StoredField in the firstplace! document.add(new StoredField(FieldConstants.LUCENE_WEIGHT_LINES, catalogue.getSearchWeight())); On 15 April 2016 at 17:40, Robert Muir wrote: > On Fri, Apr 15, 2016 at 11:48 AM, Greg Huber wrote: > > Hello, > > > > I was us

Re: Lucene indexing throughput (and Mike's lucenebench charts)

2016-04-15 Thread Robert Muir
you won't see indexing improvements there because the dataset in question is wikipedia and mostly indexing full text. I think it may have one measly numeric field. On Thu, Apr 14, 2016 at 6:25 PM, Otis Gospodnetić wrote: > (replying to my original email because I didn't get people's replies, even

Re: Depreciated IntField field in v6

2016-04-15 Thread Robert Muir
On Fri, Apr 15, 2016 at 11:48 AM, Greg Huber wrote: > Hello, > > I was using the IntField field to set the weight on my suggester. > (LegacyIntField works) > > old: > > document.add(new IntField( > FieldConstants.LUCENE_WEIGHT_LINES, > catalogue.getSearchWeight(), Field.Store.Y

Depreciated IntField field in v6

2016-04-15 Thread Greg Huber
Hello, I was using the IntField field to set the weight on my suggester. (LegacyIntField works) old: document.add(new IntField( FieldConstants.LUCENE_WEIGHT_LINES, catalogue.getSearchWeight(), Field.Store.YES)); I tried to use the IntPoint but it does not seem to work: new:

Re: Lucene warm up

2016-04-15 Thread Michael McCandless
Well, you could invoke it manually yourself, to warm up a just-opened reader? But it may be better to run "typical" known queries instead, since that will tickle the index parts that your application uses... Mike McCandless http://blog.mikemccandless.com On Fri, Apr 15, 2016 at 7:38 AM, Yonghu

Re: Lucene warm up

2016-04-15 Thread Yonghui Zhao
Thanks Michael. Will this also help restart of service with static index? 2016-04-15 17:30 GMT+08:00 Michael McCandless : > There is also SimpleMergedSegmentWarmer, which you can set on > IndexWriterConfig when you create IndexWriter so that it pre-warms > newly merged segments before making th

Re: Lucene warm up

2016-04-15 Thread Michael McCandless
There is also SimpleMergedSegmentWarmer, which you can set on IndexWriterConfig when you create IndexWriter so that it pre-warms newly merged segments before making them visible to the next near-real-time reader. Mike McCandless http://blog.mikemccandless.com On Fri, Apr 15, 2016 at 3:04 AM, Yo

Lucene warm up

2016-04-15 Thread Yonghui Zhao
As we know when a new IndexReader is create, search performance is very bad. So we should warm up the reader before serving real traffic. A simple way is to send some mocked queries. Is there any elegant or built-in method? Thanks