On 8/20/2010 7:04 PM, PeterKerk wrote:
@Markus: thanks, will try to work with that.
@Gijs: I've looked at the site and the search function on your homepage is
EXACTLY what I need! Do you have some Solr code samples for me to study
perhaps? (I just need the relevant fields in the schema.xml and
a lot! :)
Thanks to you both!
--
View this message in context:
http://lucene.472066.n3.nabble.com/Autosuggest-on-PART-of-cityname-tp1226088p1249313.html
Sent from the Solr - User mailing list archive at Nabble.com.
On 8/19/2010 4:45 PM, PeterKerk wrote:
I want to have a Google-like autosuggest function on citynames. So when user
types some characters I want to show cities that match those characters but
ALSO the amount of locations that are in that city.
Now with Solr I now have the parameter:
"&fq=title:
l be a bit different then:
q=new_ngram_field:utr
rows=0
facet=true
facet.field=non_analyzed_city_field
-Original message-
From: PeterKerk
Sent: Fri 20-08-2010 12:36
To: solr-user@lucene.apache.org;
Subject: RE: Autosuggest on PART of cityname
Ok, I now do this (searching for "u
s":[]
},
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"city":[
"utrecht",2,
"utrechtovervecht",1]},
"facet_dates":{}}}
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:
http://lucene.472066.n3.nabble.com/Autosuggest-on-PART-of-cityname-tp1226088p1241444.html
Sent from the Solr - User mailing list archive at Nabble.com.
ue to enable the faceting
engine.
http://localhost:8983/solr/db/select/?wt=json&q=*:*&rows=0&facet=true&facet.field=city&facet.prefix=bost
-Original message-
From: PeterKerk
Sent: Thu 19-08-2010 17:11
To: solr-user@lucene.apache.org;
Subject: RE: Autosuggest on
ot;:0,"docs":[
{},
{},
{},
{}]
}}
So 4 total results, but I would have expected 1
What am I doing wrong?
--
View this message in context:
http://lucene.472066.n3.nabble.com/Autosuggest-on-PART-of-cityname-tp1226088p1226571.html
Sent from the Solr - User mailing list archive at Nabble.com.
using the
EdgeNGramTokenizer is faster, but also takes up more disk space. Using the
faceting engine will not take more disk space.
-Original message-
From: PeterKerk
Sent: Thu 19-08-2010 16:46
To: solr-user@lucene.apache.org;
Subject: Autosuggest on PART of cityname
I want to have a G
oesnt show the city Boston. So the fq parameter now seems to
be an exact match, where I want it to be a partial match as well, more like
this in SQL: WHERE title LIKE '%'
How can I do this?
--
View this message in context:
http://lucene.472066.n3.nabble.com/Autosuggest-on-PART-of-ci