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 sanraj25 <sa...@gmail.com> on 2008/10/06 10:32:48 UTC
Analysers and Tokenizers
Hi,
In schema.xml we use analyzer tag inside of fieldtype tag.In Analyzer
tag some times we specify type="index" and type="query".
ex: <analyzer type="index">
some times we do not specify any type in analyzer
ex: <analyzer>.
In what situation we will use <analyzer> tag?. and what situation we give
type attribute?
please give some idea
Thanks
-sanraj
--
View this message in context: http://www.nabble.com/Analysers-and-Tokenizers-tp19833876p19833876.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Analysers and Tokenizers
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
An <analyzer> with no type specified is used at both indexing and
query parsing time. Sometimes it is desirable to do different
tokenization depending on when it is occurring (such as synonym
injection).
Erik
On Oct 6, 2008, at 4:32 AM, sanraj25 wrote:
>
> Hi,
> In schema.xml we use analyzer tag inside of fieldtype tag.In
> Analyzer
> tag some times we specify type="index" and type="query".
> ex: <analyzer type="index">
> some times we do not specify any type in analyzer
> ex: <analyzer>.
> In what situation we will use <analyzer> tag?. and what situation we
> give
> type attribute?
> please give some idea
>
> Thanks
>
> -sanraj
> --
> View this message in context: http://www.nabble.com/Analysers-and-Tokenizers-tp19833876p19833876.html
> Sent from the Solr - User mailing list archive at Nabble.com.