Re: Unknown query parser 'terms' with TermsComponent defined

2015-08-25 Thread P Williams
Thanks Hoss! It's obvious what the problem(s) are when you lay it all out
that way.

On Tue, Aug 25, 2015 at 12:14 PM, Chris Hostetter 
wrote:

>
> 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:
> :
> :   
>
> -Hoss
> http://www.lucidworks.com/
>


Re: Unknown query parser 'terms' with TermsComponent defined

2015-08-25 Thread Chris Hostetter

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:
: 
:   

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


Unknown query parser 'terms' with TermsComponent defined

2015-08-25 Thread P Williams
Hi,

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.

We build a query that has these params:

'params'=>{
  'fl'=>'id',
  'sort'=>'system_create_dtsi asc',
  'indent'=>'true',
  'start'=>'0',
  'q'=>'_query_:"{!raw f=has_model_ssim}Batch" AND ({!terms
f=id}ft849m81z)',
  'qt'=>'standard',
  'wt'=>'ruby',
  'rows'=>['1',
'1000']}},

And it responds with an error message
'error'=>{

'msg'=>'Unknown query parser \'terms\'',
'code'=>400}}

The terms component is defined in solrconfig.xml:

  

  

  true


  termsComponent

  

And the Standard Response Handler is defined:
  explicit lucene
  

In case its useful, we have
4.9

Why would we be getting the "Unknown query parser \'terms\'" error?

Thanks,
Tricia