1) The "terms" Query Parser (TermsQParser) has nothing to do with the 
"TermsComponent" (the first is for quering many distinct terms, the 
later is for requesting info about low level terms in your index)

https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-TermsQueryParser
https://cwiki.apache.org/confluence/display/solr/The+Terms+Component

2) TermsQParser (which is what you are trying to use with the "{!terms..." 
query syntax) was not added to Solr until 4.10

3) based on your example query, i'm pretty sure what you want is the 
TermQParser: "term" (singular, no "s") ...

https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-TermQueryParser

        {!term f=id}ft849m81z


: We've encountered a strange situation, I'm hoping someone might be able to
: shed some light. We're using Solr 4.9 deployed in Tomcat 7.
        ...
:       'q'=>'_query_:"{!raw f=has_model_ssim}Batch" AND ({!terms
f=id}ft849m81z)',
        ...
:     'msg'=>'Unknown query parser \'terms\'',
:     'code'=>400}}

        ...

: The terms component is defined in solrconfig.xml:
: 
:   <searchComponent name="termsComponent" class="solr.TermsComponent" />

-Hoss
http://www.lucidworks.com/

Reply via email to