lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-2352) TermVectorComponent fails with "Undefined Field" errors for score, *, or any Solr 4x psuedo-fields used in the "fl" param.
Date Fri, 08 Jun 2012 11:56:23 GMT

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

Robert Muir commented on SOLR-2352:
-----------------------------------

{quote}
...the last item seemingly a relic from when the code use to use the "TermVectorMapper" interface
to walk the vectors the various fields, and used diff code paths depending on wether "all"
fields were requested, or just specific ones.
{quote}

I didnt look at the patch, or the issue, but maybe in the case only specific fields are returned
you could just wrap 
the Fields returned by getTermVectors with a "FilteredFields" so you only have one codepath:

http://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/FieldFilterAtomicReader.java


                
> TermVectorComponent fails with "Undefined Field" errors for score, *, or any Solr 4x
psuedo-fields used in the "fl" param.
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2352
>                 URL: https://issues.apache.org/jira/browse/SOLR-2352
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other
>    Affects Versions: 3.1
>         Environment: Ubuntu 10.04/Arch solr 3.x branch r1058326
>            Reporter: Jed Glazner
>            Assignee: Hoss Man
>             Fix For: 4.0
>
>         Attachments: SOLR-2352.patch
>
>
> When searching using the term vector components and setting fl=*,score the result is
a http 400 error 'undefined field: *'. If you disable the tvc the search works properly.
> Example bad request...
> {code}http://localhost:8983/solr/select/?qt=tvrh&q=includes:[*+TO+*]&fl=*{code}
> 3.1 stack trace:
> {noformat}
> SEVERE: org.apache.solr.common.SolrException: undefined field: *
>    at org.apache.solr.handler.component.TermVectorComponent.process(TermVectorComponent.java:142)
> ...
> {noformat}
> The work around is to explicitly use the tv.fl param when using psuedo-fields in the
fl...
> {code}http://localhost:8983/solr/select/?qt=tvrh&q=includes:[*+TO+*]&fl=*&tv.fl=includes{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message