[ 
https://issues.apache.org/jira/browse/SOLR-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man resolved SOLR-1194.
----------------------------

    Resolution: Invalid

This sounds like a bug in your custom QParser -- the QParser is what calls the 
analyzer and constructs the query.

w/o any information as to how FPersonQParserPlugin is implemented, there 
doesn't seem to be a bug here.

If your issue is that you have questions about how to implement 
.FPersonQParserPlugin properly so thta it uses the field's analyzer, please 
post that as a question to the solr-user mailing list

> Query Analyzer not Invoking for Custom FiledType - When we use Custom QParser 
> Plugin
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-1194
>                 URL: https://issues.apache.org/jira/browse/SOLR-1194
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.3
>         Environment: Windows, Java 1.6. Solr 1.3
>            Reporter: Nagarajan.shanmugam
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Hi I  Created Custom Solr Field kwd_names in
> schema.xml
> <fieldType name="kwd_names" class="solr.TextField" positionIncrementGap="100">
>                       <analyzer type="query">
>                               <tokenizer class="solr.KeywordTokenizerFactory" 
> />
>                               <filter class="solr.TrimFilterFactory" />
>                               <filter class="solr.LowerCaseFilterFactory" />
>                               <filter class="solr.PhoneticFilterFactory" 
> encoder="Metaphone" inject="true"/>                          
>                       </analyzer>
>                       <analyzer type="index">
>                               <tokenizer class="solr.KeywordTokenizerFactory" 
> />
>                               <filter class="solr.TrimFilterFactory" />       
>                         
>                               <filter class="solr.LowerCaseFilterFactory" />
>                               <filter class="solr.PhoneticFilterFactory" 
> encoder="Metaphone" inject="true"/>                          
>                       </analyzer>                     
>       </fieldType>
> I configured requestHandler in solrConfig.xml with Custom QparserPlugin
> <requestHandler name="fperson" class="solr.SearchHandler">
>     <!-- default values for query parameters -->
>      <lst name="defaults">
>        <str name="echoParams">explicit</str>
>        <str name="defType">fpersonQueryParser</str>
>      </lst>
>  </requestHandler>
> <queryParser name="fpersonQueryParser" 
>               
> class="com.thinkronize.edudym.search.analysis.FPersonQParserPlugin" />
>   SolrQuery q = new SolrQuery();
>   q.setParam("q", "George");
>   q.setParam("gender", "M");
>   q.setQueryType(FPersonSearcher.QUERY_TYPE);
>   server.query(q);
> When I fire Query it wont invoke the QueryAnlayzer it Doesnt give any result. 
> But if i remove q.setQueryType its invoking the query analyzer and its giving 
> results 
> That mean QueryAnalyzer for that field not invoked when i use CustomQParser 
> Plugin.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to