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
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
>
; 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
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&
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
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
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