how to deal with too many clause error in boolean query.

2009-06-17 Thread vanshi
Hello all, I have a situation where a field is indexed like this (FAC_NAME(Field.Store.NO, Field.Index.NO_NORMS)) and keyword analyzer is used on this field. Although, I'm aware that NO_NORMS doesn't use any analyzer. Now, the query +(FAC_NAME:fa*) is failing with 'Too many clause exception' in

Re: Custom sorting!

2009-06-05 Thread vanshi
uld expect 'JAHN' to come before 'johnson'. can somebody suggest wht's going wrong here. Vanshi vanshi wrote: > > I am doing custom sorting within lucene using overloaded > searcher.search(query, sort). First precedence is to sort based on 'last >

Custom sorting!

2009-06-04 Thread vanshi
; entered is 'john' and first name is 'p'. JOHNSON, PETER AINN JOHNSON, PETER BINN JOHNSON, PEGGY AOUT JOHNSON, PHILLIP W INN JOHNSON-STUHR, PAMELA J OUT JOHN, P G INN JOHNSON, PAUL G INN JOHNSON, PETER R

Sorting fields while searching!

2009-06-01 Thread vanshi
ST_NAME_EXACT.toString(), SortField.STRING )); sorts.add(new SortField(PhysicianFieldInfo.LAST_NAME_EXACT.toString(), SortField.STRING )); After these 2 sorting, I'm also doing sorting on some other fields but i guess the name sorting should take precedence over later sortings. Can anybody suggest what I&

Re: No hits while searching!

2009-06-01 Thread vanshi
Thanks Matt & sithu. Yes, It was due to stop word analyzer...now i'm using a simple analyzer temporarily, as I know even simple analyzer cannot handle quotes in names. However, can somebody plz direct me towards how to handle quotes with the name in query using lowercase analyzer? thank

Re: No hits while searching!

2009-06-01 Thread vanshi
g but not with first name=a or an. Appreciate all your inputs. Vanshi Erick Erickson wrote: > > The most common issue with this kind of thing is that UN_TOKENIZEDimplies > no > case folding. So if your case differs you won't get a match. > > That aside, the very first thing

No hits while searching!

2009-05-26 Thread vanshi
In my web application, I need search functionality on first name and last name in 2 different ways, one search must be based on 'Metaphone Analyzer' giving all similar sounding names as result and another search should be exact match on either first name or last name. The name sounds like search h