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 Jeff Rodenburg <je...@gmail.com> on 2006/06/28 04:02:35 UTC

Dumb question

Would the query term(s) passed in a request need to be stemmed/analyzed
outside of the request (prior to), or is that handled internally?  I'm still
making my way through the code but need to answer that question in short
order.

cheers,
j

Re: Dumb question

Posted by Jeff Rodenburg <je...@gmail.com>.
perfect, thanks Chris

On 6/27/06, Chris Hostetter <ho...@fucit.org> wrote:
>
>
> : Would the query term(s) passed in a request need to be stemmed/analyzed
> : outside of the request (prior to), or is that handled internally?  I'm
> still
> : making my way through the code but need to answer that question in short
> : order.
>
> Solr field types all have at least one Analyzer -- sometimes two if the
> field type is configured to use a differnet analyzer when indexing vs
> querying.   The Analyzer's are all configured via the schema.xml file, and
> internally wrapped into a single uber Analyzer that delegates to the
> appropraite field specific Analyzer (see the IndexSearcher methods
> getAnalyzer and getQueryAnalyzer)
>
> for examples of configuring the analyzers for various fields, take a look
> at the example schema.xml, or the analyzer documentation on the wiki...
>
> http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
>
>
>
>
>
> -Hoss
>
>

Re: Dumb question

Posted by Chris Hostetter <ho...@fucit.org>.
: Would the query term(s) passed in a request need to be stemmed/analyzed
: outside of the request (prior to), or is that handled internally?  I'm still
: making my way through the code but need to answer that question in short
: order.

Solr field types all have at least one Analyzer -- sometimes two if the
field type is configured to use a differnet analyzer when indexing vs
querying.   The Analyzer's are all configured via the schema.xml file, and
internally wrapped into a single uber Analyzer that delegates to the
appropraite field specific Analyzer (see the IndexSearcher methods
getAnalyzer and getQueryAnalyzer)

for examples of configuring the analyzers for various fields, take a look
at the example schema.xml, or the analyzer documentation on the wiki...

http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters





-Hoss