I will never have "mainstrasse" in my lucene index, since strasse is always replaced with " strasse" causing "mainstrasse" to be split to "main strasse". So the example you gave: "schöne strasse" will match "schöne mainstrasse", since in the lucene index I have "schöne main strasse".
Daniel Naber-5 wrote: > > On Monday 21 May 2007 22:53, bhecht wrote: > >> If someone searches for mainstrasse, my tools will split it again to >> main and strasse, and then lucene will be able to find it. > > "strasse" will match "mainstrasse" but the phrase query "schöne strasse" > will not match "schöne mainstrasse". However, this could be considered a > feature. Aynway, it will be difficult to use features that rely on the > term list, e.g. the spellchecker. It will not be able to suggest > "mainstrasse", as that's not in the index. > > Regards > Daniel > > -- > http://www.danielnaber.de > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/stop-words%2C-synonyms...-what%27s-in-it-for-me--tf3792510.html#a10727213 Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]