Re: A bug in multisearcher?

2011-05-13 Thread haichengyl
2011-05-14 haichengyl 发件人: hao yan 发送时间: 2011-05-14 04:56:27 收件人: java-user 抄送: Xiaoyang Gu; hao yan 主题: A bug in multisearcher? hi, guys Xiaoyang and I today just found a bug of lucene. This is actually a Multi-searcher bug. In particular, If we search with Not on NumericRange a

RE: A bug in multisearcher?

2011-05-13 Thread Uwe Schindler
Hi, This is a well-known bug, which is unfixable (query rewrite across different searchers is wrong). In general you should use a MultiReader on your IndexReaders and use a simple IndexSearcher on top of that MultiReader. MultiSearcher and ParallelMultiSearcher were deprecated in 3.1 because of th

A bug in multisearcher?

2011-05-13 Thread hao yan
hi, guys Xiaoyang and I today just found a bug of lucene. This is actually a Multi-searcher bug. In particular, If we search with Not on NumericRange and we use MultiSearcher, we will wrong search results (However, if we use IndexSearcher, the result is correct). Basically the NotOfNumericRange

RE: Non-English Languages Search

2011-05-13 Thread Burton-West, Tom
Hi Ivan and Robert, >> sounds like you should talk to Tom Burton-West! Ok, I'll bite. A few questions: Are you planning to have separate fields for each language or the same fields with contents in different languages? If #2 are you planning to have a field to indicate the language so you can d

RE: SpanNearQuery - inOrder parameter

2011-05-13 Thread Gregory Tarr
Chris, and others Thanks for your reply. In effect what you are saying is that SpanNearQuery works as expected, and I should set inOrder=true to obtain the behaviour I require, even though I don't care about the order? Thanks Greg -Original Message- From: Chris Hostetter [mailto:hossma

Re: IndexReader.close() behavior

2011-05-13 Thread Mindaugas Žakšauskas
Hi, In my quest to fight a similar problem, I ended up writing a wrapper finalizer (sic!) that simply closes the underlying reader/searcher. It might be against all advices (e.g. "Effective Java 2ed" Item 7) but I simply couldn't find any better solution to this problem. I wish I wouldn't need do

RE: IndexReader.close() behavior

2011-05-13 Thread Alexey Lef
Apologies for a long silence - have been fighting a nasty bug of a non-computer variety. We are using 3.0.3. I was trying to upgrade to 3.1 and clear all deprecation warnings. What I described was an attempt to switch from MultiSearcher to MultiReader. We had a simple delegating IndexSearcher w

Re: Sharding Techniques

2011-05-13 Thread Toke Eskildsen
On Fri, 2011-05-13 at 12:11 +0200, Samarendra Pratap wrote: > Comparison between - single index Vs 21 indexes > Total Size - 18 GB > Queries run - 500 > % improvement - roughly 18% I was expecting a lot more. Could you test whether this is an IO-issue by selecting a slow query and performing the e

Re: Sharding Techniques

2011-05-13 Thread Samarendra Pratap
Hi Tom, Thanks for pointing me to something important (phrase queries) which I wasn't thinking of. We are using synonyms which gets expanded at run time. I'll have to give it a thought. We are not using synonyms at indexing time due to lack of flexibility of changing the list. We are not using