> I have the following problem. I am doing a search by street > name, but I > would like to use the fuzzy capabilities of Solr. > > My example: > I search for street name:ALCALA (query: NVIAC:ALCALA) and I > get this result: > <doc> > <str name="CMUM">079</str> > <str name="COD_VIA">2807900132</str> > <int name="CPRO">28</int> > <str name="NOMBRE_MUN">MADRID</str> > <str name="NVIAC">ALCALA</str> > <str name="TVIA">CALLE</str> > </doc> > > but... if I do NVIAC:ALCALO~ I would expect the first > document to appear > (at least), but I get no results instead. > > I am a newbie in this, so I have got no clue on what is > happening. Anybody's > help will be more than appreciated.
By default fuzzy queries are not analyzed. This is a FAQ. http://wiki.apache.org/lucene-java/LuceneFAQ#Are_Wildcard.2C_Prefix.2C_and_Fuzzy_queries_case_sensitive.3F See Erick Erickson's writeup for the solution: http://wiki.apache.org/solr/MultitermQueryAnalysis