Performance of MultiFieldQueryParser versus QueryParser

2012-03-01 Thread Paul Taylor
If I happen to subclass MultiFieldQueryParser unneccessarily (thought need more than one default search but don't after all) would it have any impact on performance ? thanks Paul - To unsubscribe, e-mail: java-user-unsubscr

Re: Range queries in successive positions

2012-03-01 Thread Trejkaz
On Fri, Mar 2, 2012 at 6:22 PM, su ha wrote: > Hi, > I'm new to Lucene. I'm indexed some documents with Lucene and need to > sanitize it to ensure > that they do not have any social security numbers (3-digits 2-digits > 4-digits). > > (How) Can I write a query (with the QueryParser) that searche

Range queries in successive positions

2012-03-01 Thread su ha
Hi, I'm new to Lucene. I'm indexed some documents with Lucene and need to sanitize it to ensure that they do not have any social security numbers (3-digits 2-digits 4-digits). (How) Can I write a query (with the QueryParser) that searches for this pattern? e.g. I can do [000 to 999] or [00 to 9

Re: QueryParser strange behavior

2012-03-01 Thread Ganesh
It is fixed now. I need to enable qp.setAutoGeneratePhraseQueries(true); Regards Ganesh - Original Message - From: "Ganesh" To: Sent: Friday, March 02, 2012 10:46 AM Subject: Re: QueryParser strange behavior Hello Damerian, Please let me know, How you fixed the problem? I am fac

Re: QueryParser strange behavior

2012-03-01 Thread Ganesh
Hello Damerian, Please let me know, How you fixed the problem? I am facing similar kind of issue. My analyzer produces multiple tokens. When i search usig 3.0.3, the query expands to +field: "token1 token2" but now in 3.5, +field(token1 token2). It is doing OR search now. If either of the t

Re: Lucene performance in 64 Bit

2012-03-01 Thread Ganesh
Thanks Li Li. Please share your experience in 64 bit. How big your indexes are? Regards Ganesh - Original Message - From: "Li Li" To: Sent: Thursday, March 01, 2012 3:03 PM Subject: Re: Lucene performance in 64 Bit >I think many users of lucene use large memory because 32bit syste

Lucene's use of vectors

2012-03-01 Thread Mike O'Leary
In the Javadoc page for the Similarity class, it says, "Lucene combines Boolean model (BM) of Information Retrieval with Vector Space Model (VSM) of Information Retrieval - documents "approved" by BM are scored by VSM." Is the Vector Space Model that is referred to here different than the term

Re: CloseableThreadLocal problem

2012-03-01 Thread Michael McCandless
Phew, tricky. The problem is purging is potentially costly... it iterates all entries in the map (threads that have called get) looking for dead threads. Can you open an issue...? We can iterate there. Thanks for raising this, Mike McCandless http://blog.mikemccandless.com On Wed, Feb 29, 20

RE: SweetSpotSimilarity

2012-03-01 Thread Paul Hill
HI Chris, I didn't see your response. Thanks. Actually I was recently playing in fooplot , an online plotting tool (one of many), to examine the various formulas and getting a better handle on what they do. Thanks for the discussion of 'sweetspot'. I'm thinking this might help others going

Re: QueryParser strange behavior

2012-03-01 Thread Damerian
Στις 1/3/2012 3:08 μμ, ο/η Ian Lea έγραψε: Not a clue. I suggest you post a small, complete and self-contained (no external dependencies) program or test case that demonstrates the problem. And your analyzer. -- Ian. 2012/3/1 Damerian: Hello again! First of all thank you again for replying

Re: How to add DocValues Field to a document in an optimal manner.

2012-03-01 Thread Michael McCandless
You shouldn't use doc.removeField -- it's costly (the fields are a list internally so we walk that list looking for which field(s) to remove). To reuse you can just use Field.setValue, and leave the Field instance on the Document. But: you should only do this if you really have a meaningful perfo

Re: QueryParser strange behavior

2012-03-01 Thread Ian Lea
Not a clue. I suggest you post a small, complete and self-contained (no external dependencies) program or test case that demonstrates the problem. And your analyzer. -- Ian. 2012/3/1 Damerian : > Hello again! > First of all thank you again for replying my amateur questions. > I would like to

Re: QueryParser strange behavior

2012-03-01 Thread Damerian
Hello again! First of all thank you again for replying my amateur questions. I would like to rephrase my question because now what i described is not the case and its not a problem of input methods. I have made my custom analyzer which when indexing e.g the phrase "The quick Brown Fox" will p

Re: Lucene performance in 64 Bit

2012-03-01 Thread Li Li
I think many users of lucene use large memory because 32bit system's memory is too limited(windows 1.5GB, Linux 2-3GB). the only noticable thing is * Compressed* *oops* . some says it's useful, some not. you should give it a try. On Thu, Mar 1, 2012 at 4:59 PM, Ganesh wrote: > Hello all, > > Is