You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Nasima Banu <na...@position2.com> on 2011/10/25 08:19:24 UTC
Usage of Double quotes for single terms (camelcase) while querying
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
Re: Usage of Double quotes for single terms (camelcase) while
querying
Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: Usage of Double quotes for single terms (camelcase) while querying
: References: <A5...@mac.com>
: <CA...@mail.gmail.com>
: <66...@mac.com>
: <CA...@mail.gmail.com>
: <51...@mac.com>
: In-Reply-To: <51...@mac.com>
https://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists
When starting a new discussion on a mailing list, please do not reply to
an existing message, instead start a fresh email. Even if you change the
subject line of your email, other mail headers still track which thread
you replied to and your question is "hidden" in that thread and gets less
attention. It makes following discussions in the mailing list archives
particularly difficult.
-Hoss