I'll take another look and see if it makes sense to have the index and query time parameters the same or different.
As far as the initial issue, I think you're right Tom, it is hitting on both. I think what threw me off was the highlighting -- in one of my matching documents, the term "I-CAR" is highlighted, but I think it actually hit on the term "ISHIN-I (car" which is also in the document. The debug output for my query is <str name="rawquerystring">ft:I-Car</str> <str name="querystring">ft:I-Car</str> <str name="parsedquery">+MultiPhraseQuery(ft:"i (car icar)")</str> <str name="parsedquery_toString">+ft:"i (car icar)"</str> Thanks! -----Original Message----- From: Tom Hill [mailto:solr-l...@worldware.com] Sent: Tuesday, April 20, 2010 2:08 PM To: solr-user@lucene.apache.org Subject: Re: Odd query result I agree that, if they are the same, you want to merge them. In this case, I don't think you want them to be the same. In particular, you usually don't want to catenateWords and catenateNumbers both index time AND at query time. You generate the permutations on one, or the other, but you don't need to do it for both. I usually do it at index time Tom On Tue, Apr 20, 2010 at 11:29 AM, MitchK <mitc...@web.de> wrote: > > It has nothing to do with your problem, since it seems to work when Tom > tested it. > However, it seems like you are using the same configurations on query- and > index-type analyzer. > If you did not hide anything from (for example own filter-implementations), > because you don't want to confuse us, you can just delete the definitions > "type=index" and "type=query". If you do so, the whole > fieldType-filter-configuration will be applied on both: index- and > query-time. There is no need to specify two equal ones. > > I think this would be easier to maintain in future :). > > Kind regards > - Mitch > > --> > <analyzer> > > <tokenizer class="solr.WhitespaceTokenizerFactory"/> > > <filter class="solr.SynonymFilterFactory" > synonyms="synonyms.txt" ignoreCase="true" expand="true"/> > > <filter class="solr.StopFilterFactory" > > ignoreCase="true" > > words="stopwords.txt" > > enablePositionIncrements="true" > > /> > > <filter class="solr.WordDelimiterFilterFactory" > generateWordParts="1" generateNumberParts="1" catenateWords="1" > catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/> > > <filter class="solr.LowerCaseFilterFactory"/> > > <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> > > </analyzer> > -- > View this message in context: > http://n3.nabble.com/Odd-query-result-tp732958p733095.html > Sent from the Solr - User mailing list archive at Nabble.com. >