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

Hoss Man updated SOLR-2352:
---------------------------

    Description: 
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}



  was:
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.

stack trace:
 853 SEVERE: org.apache.solr.common.SolrException: undefined field: *
 854   at 
org.apache.solr.handler.component.TermVectorComponent.process(TermVectorComponent.java:142)
 855   at 
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
 856   at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
 857   at org.apache.solr.core.SolrCore.execute(SolrCore.java:1357)
 858   at 
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:341)
 859   at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:244)
 860   at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
 861   at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
 862   at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 863   at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
 864   at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
 865   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
 866   at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
 867   at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
 868   at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 869   at org.mortbay.jetty.Server.handle(Server.java:326)
 870   at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
 871   at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
 872   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
 873   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
 874   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
 875   at 
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
 876   at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

        Summary: TermVectorComponent fails with "Undefined Field" errors for 
score, *, or any Solr 4x psuedo-fields used in the "fl" param.  (was: HTTP 400 
Undefined Filed: * with TV component enabled.)

revised description & summary to clarify full scope of problem and mention work 
around
                
> 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
>             Fix For: 4.0
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to