Hello Solr, Do we have to specify double quotes for a single term (if the term is a camelcase, eg, OrientalTradingCo) while querying. I am using apache-solr-3.3.0. For example the query : q=OrientalTradingCo&debugQuery=true gives the debugging response as ---
<lst name="debug"> <str name="rawquerystring">OrientalTradingCo</str> <str name="querystring">OrientalTradingCo</str> <str name="parsedquery">title:orient title:trade title:co title:orientaltradingco</str> <str name="parsedquery_toString">title:orient title:trade title:co title:orientaltradingco</str> </lst> I see a major change in the debug output using solr 1.4. The same query gives me the debug output of --- q=OrientalTradingCo&debugQuery=true <lst name="debug"> <str name="rawquerystring">OrientalTradingCo</str> <str name="querystring">OrientalTradingCo</str> <str name="parsedquery">MultiPhraseQuery(defaultquery:"orient trade (co orientaltradingco)")</str> <str name="parsedquery_toString">defaultquery:"orient trade (co orientaltradingco)"</str> </lst> The schema used for both the versions are the same --- <fieldType name="text" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.KeywordTokenizerFactory"/> <filter class="solr.CommonGramsFilterFactory" words="stopwords.txt" minShingleSize="3" maxShingleSize="3" ignoreCase="true"/> <!--<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/> --> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.SnowballPorterFilterFactory" protected="protwords.txt" language="English"/> <!-- <filter class="solr.PorterStemFilterFactory" language="English" protected="protwords.txt"/> --> </analyzer> <analyzer type="query"> <tokenizer class="solr.KeywordTokenizerFactory"/> <filter class="solr.CommonGramsFilterFactory" words="stopwords.txt" minShingleSize="3" maxShingleSize="3" ignoreCase="true"/> <!--<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/> --> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.SnowballPorterFilterFactory" protected="protwords.txt" language="English"/> <!--<filter class="solr.PorterStemFilterFactory" language="English" protected="protwords.txt"/> --></analyzer> </fieldType> Has there been a change in specifying queries for single terms which are camelcase???? Thanks, Nasima