lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PeterKerk <vettepa...@hotmail.com>
Subject Re: finding exact case insensitive matches on single and multiword values
Date Fri, 03 Dec 2010 16:32:04 GMT


You are right, this is what I see when I append the debug query (very very
useful btw!!!) in old situation:
<arr name="parsed_filter_queries">
	<str>city:den title:haag</str>
	<str>PhraseQuery(themes:"hotel en restaur")</str>
</arr>



I then changed the schema.xml to:

<fieldType name="myField" class="solr.TextField" sortMissingLast="true"
omitNorms="true"> 
<analyzer> 
	<tokenizer class="solr.KeywordTokenizerFactory"/> 
	<filter class="solr.LowerCaseFilterFactory"/> 
</analyzer> 
</fieldType> 
	
<field name="city" type="myField" indexed="true" stored="true"/> <!-- used
to be "string" -->


I then tried adding parentheses:
http://localhost:8983/solr/db/select/?indent=on&facet=true&fq=city:(den+haag)&q=*:*&start=0&rows=25&fl=id,title,friendlyurl,city&facet.field=city
also tried (without +):
http://localhost:8983/solr/db/select/?indent=on&facet=true&fq=city:(den
haag)&q=*:*&start=0&rows=25&fl=id,title,friendlyurl,city&facet.field=city

Then I get:

<arr name="parsed_filter_queries">
	<str>city:den city:haag</str>
</arr>

And still 0 results

But as you can see the query is split up into 2 separate words, I dont think
that is what I need?


-- 
View this message in context: http://lucene.472066.n3.nabble.com/finding-exact-case-insensitive-matches-on-single-and-multiword-values-tp2012207p2012509.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message