lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PeterKerk <>
Subject Solr like for autocomplete field?
Date Tue, 02 Nov 2010 17:56:53 GMT

I have a city field. Now when a user starts typing in a city textbox I want
to return found matches (like Google).

So for example, user types "new", and I will return "new york", "new
hampshire" etc.

my schema.xml

<field name="city" type="string" indexed="true" stored="true"/>

my current url:


Basically 2 questions here:
1. is the url Im using the best practice when implementing autocomplete?
What I wanted to do, is use the facets for found matches.
2. How can I match PART of the cityname just like the SQL LIKE command,
cityname LIKE '%<userinput>'

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message