Hi Doug, I don't understand what you mean by the following:
> For example, if a user searches for q=hot dogs&defType=edismax&qf=title > body the *query parser* *not* the *analyzer* first turns the query into: If I have indexAnalyzer and queryAnalyzer in a fieldType that are 100% identical, the example you provided, does it stand? If so, why? Or do you mean something totally different by "query parser"? Thanks Steve On Wed, Apr 29, 2015 at 4:18 PM, Doug Turnbull < dturnb...@opensourceconnections.com> wrote: > *> 1) If the content of indexAnalyzer and queryAnalyzer are exactly the > same,that's the same as if I have an analyzer only, right?* > 1) Yes > > *> 2) Under the hood, all three are the same thing when it comes to what > kind* > *of data and configuration attributes can take, right?* > 2) Yes. Both take in text and output a token stream. > > *>What I'm trying to figure out is this: beside being able to configure a* > > *fieldType to have different analyzer setting at index and query time, > thereis nothing else that's unique about each.* > > The only thing to look out for in Solr land is the query parser. Most Solr > query parsers treat whitespace as meaningful. > > For example, if a user searches for q=hot dogs&defType=edismax&qf=title > body the *query parser* *not* the *analyzer* first turns the query into: > > (title:hot title:dog) | (body:hot body:dog) > > each word which *then *gets analyzed. This is because the query parser > tries to be smart and turn "hot dog" into hot OR dog, or more specifically > making them two must clauses. > > This trips quite a few folks up, you can use the field query parser which > uses the field as a phrase query. Hope that helps > > > -- > *Doug Turnbull **| *Search Relevance Consultant | OpenSource Connections, > LLC | 240.476.9983 | http://www.opensourceconnections.com > Author: Taming Search <http://manning.com/turnbull> from Manning > Publications > This e-mail and all contents, including attachments, is considered to be > Company Confidential unless explicitly stated otherwise, regardless > of whether attachments are marked as such. > On Wed, Apr 29, 2015 at 3:41 PM, Steven White <swhite4...@gmail.com> > wrote: > > > Hi Everyone, > > > > Looking at Solr's schema.xml, there are three kind of analyzers: > analyzer, > > indexAnalyzer and queryAnalyzer. I have two questions about them: > > > > 1) If the content of indexAnalyzer and queryAnalyzer are exactly the > same, > > that's the same as if I have an analyzer only, right? > > > > 2) Under the hood, all three are the same thing when it comes to what > kind > > of data and configuration attributes can take, right? > > > > What I'm trying to figure out is this: beside being able to configure a > > fieldType to have different analyzer setting at index and query time, > there > > is nothing else that's unique about each. > > > > Thanks > > > > Steve > > >