You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Grant Ingersoll (JIRA)" <ji...@apache.org> on 2010/08/11 15:52:16 UTC

[jira] Commented: (SOLR-1418) Improve QueryElevationComponent to Query Complex Strings

    [ https://issues.apache.org/jira/browse/SOLR-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897268#action_12897268 ] 

Grant Ingersoll commented on SOLR-1418:
---------------------------------------

Do you have a patch, Tom?

> Improve QueryElevationComponent to Query Complex Strings
> --------------------------------------------------------
>
>                 Key: SOLR-1418
>                 URL: https://issues.apache.org/jira/browse/SOLR-1418
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 1.4
>         Environment: windows xp/jdk1.6/tomcat6
>            Reporter: tom liu
>
> In Solr 1.4, QueryElevationComponent use Query DocNode to create ElevationObj, then add to elevationCache. After that, when user invoke a querystring qstr, prepare method invokes getAnalyzedQuery(qstr) to get analyzedQueryStrings, then get ElevationObj from elevationCache.
> So, user input string qstr must be Query-DocNode-String, if not , we will not get Elevation results from elevation.xml.
> I think this would be improved. Such as:
> 1. Change method [String getAnalyzedQuery( String query ) throws IOException] to [String[ ] getAnalyzedQuery( String query ) throws IOException]
> 2. Change method prepare:
> booster = getElevationMap( reader, req.getCore() ).get( qstr );
> to:
> for(String qstr : qstrs){
>      booster = getElevationMap( reader, req.getCore() ).get( qstr );
>      if(null != booster) break;
> }

-- 
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org