combining MultiFieldQueryParserparser with FuzzyQuery

2010-10-18 Thread Andy Yang
I would like to use MultiFieldQueryParser to serach multiple fields, then in each field, I want to use fuzzy search. How can that be done? Any example will be appreciated. Thanks, Andy

Re: Parse multiple fields using Queryparser

2010-10-18 Thread Erick Erickson
You can create your own BooleanQuery and just add clauses as you need to as well... Best Erick On Mon, Oct 18, 2010 at 1:55 PM, Nilesh Vijaywargiay wrote: > I have many fields in my document and want to parse my query including each > of them > > QueryParser parser = new QueryParser(Version.LUC

Re: ApacheCon Meetup in Atlanta

2010-10-18 Thread Qi Li
I do not have much to present at this moment but I will attend. Thanks. Qi On Mon, Oct 18, 2010 at 3:19 PM, Erik Hatcher wrote: > Count me in for any kind of Lucene/Solr hanging out in Atlanta. > >Erik > > > On Oct 18, 2010, at 14:57 , Grant Ingersoll wrote: > > > Is there interest in

Re: ApacheCon Meetup in Atlanta

2010-10-18 Thread Erik Hatcher
Count me in for any kind of Lucene/Solr hanging out in Atlanta. Erik On Oct 18, 2010, at 14:57 , Grant Ingersoll wrote: > Is there interest in having a Meetup at ApacheCon? Who's going? Would > anyone like to present? We could do something less formal, too, and just > have drinks a

ApacheCon Meetup in Atlanta

2010-10-18 Thread Grant Ingersoll
Is there interest in having a Meetup at ApacheCon? Who's going? Would anyone like to present? We could do something less formal, too, and just have drinks and Q&A/networking. Thoughts? -Grant - To unsubscribe, e-mail: java

Re: Parse multiple fields using Queryparser

2010-10-18 Thread Felipe Lobo
You can use *MultiFieldQueryParser*. http://lucene.apache.org/java/2_9_3/api/all/org/apache/lucene/queryParser/MultiFieldQueryParser.html 2010/10/18 Nilesh Vijaywargiay > I have many fields in my document and want to parse my query including each > of them > > QueryParser parser = new QueryPars

Parse multiple fields using Queryparser

2010-10-18 Thread Nilesh Vijaywargiay
I have many fields in my document and want to parse my query including each of them QueryParser parser = new QueryParser(Version.LUCENE_29, "Field2",new StandardAnalyzer(Version.LUCENE_29)); Should I create multiple parsers in this case or is there any other way round?

Re: Consider only documents of a category for IDF

2010-10-18 Thread Max Jakob
Thanks Mark, the call reader.docFreq(categoryTerm) is certainly a good way to get the nominator part of the IDF formula (http://en.wikipedia.org/wiki/Tf%E2%80%93idf#Mathematical_details). However, what is left to get is the denominator. For this I want the number of in-category documents that each

Re: Consider only documents of a category for IDF

2010-10-18 Thread mark harwood
Can you not just call reader.docFreq(categoryTerm) ? The returned figure includes deleted docs but then the search term uses this method too so should suffer from the same inaccuracy. Cheers Mark - Original Message From: Max Jakob To: java-user@lucene.apache.org Sent: Mon, 18 Octobe

Consider only documents of a category for IDF

2010-10-18 Thread Max Jakob
Hi, I would like to change the IDF value of the Lucene similarity computation to "inverse document frequency inside category". Not the complete collection should be considered, but only the documents that have a certain category. The categories are stored as separate fields. The implementation be