Have you looked at and/or shingles? Another possibility is synonyms if you know all the terms you want to pair up.
Best Erick On May 20, 2011 3:03 PM, "Sujit Pal" <sujit....@comcast.net> wrote: > This may or may not help you, we solved something similar based on > hyphenated words - essentially when we encountered a hyphenated word > (say word1-word2) we send in a OR query with the word (word1-word2) > itself, a phrase "word1 word2"~3 and the word formed by removing the > hyphen (word1word2). > > But in this case, "soccerclub" is not hyphenated, but if you have some > kind of mapping of "common conjunctions" based on your search logs, you > could write a custom QParser plugin to break it up like that. > > -sujit > > On Fri, 2011-05-20 at 05:52 -0700, roySolr wrote: >> Thanks for the help so far, >> >> I don't think this solves the problem. What if my data look like this: >> >> soccer club Manchester united >> >> if i search for "soccerclub manchester" and for "soccer club manchester" i >> want this result back. >> A copyfield that removes whitespaces is not an option. >> >> With the charfilter i get something like this: >> >> 1. Index time: soccer club Manchester united--> soccerclubManchesterunited >> indexed. >> 2. Search time: soccer club OR soccerclub --> soccerclub searched. >> >> In this situation i still get no result if i search soccerclub. The index is >> soccerclubManchesterunited. >> >> How can i fix it? >> >> -- >> View this message in context: http://lucene.472066.n3.nabble.com/Results-with-and-without-whitespace-soccer-club-and-soccerclub-tp2934742p2965389.html >> Sent from the Solr - User mailing list archive at Nabble.com. >