lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <>
Subject RE: Autosuggest on PART of cityname
Date Fri, 20 Aug 2010 11:07:06 GMT
You can't, it's analyzed. And if you facet on a non-analyzed field, you cannot distinguish
between upper- and lowercase tokens. If you want that, you must create a new field with an
EdgeNGramTokenizer, search on it and then you can facet on a non-analyzed field. Your query
will be a bit different then:







-----Original message-----
From: PeterKerk <>
Sent: Fri 20-08-2010 12:36
Subject: RE: Autosuggest on PART of cityname

Ok, I now do this (searching for "utr" in cityname):

In the DB there's 1 location with cityname 'Utrecht' and the other 1 is with
'Utrecht Overvecht'

So in my dropdown I would like:
Utrecht (1)
Utrecht Overvecht (1)

But I get this:

As you can see it looks at field city, where the tokenizer looks at each
individual word. I also tried city_raw, but that was without any results.

How can I fix that my dropdown will show the correct values?
View this message in context:
Sent from the Solr - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message