Liu Chao created SOLR-3718:
------------------------------

             Summary: /tvrh request handler is not working
                 Key: SOLR-3718
                 URL: https://issues.apache.org/jira/browse/SOLR-3718
             Project: Solr
          Issue Type: Bug
          Components: SearchComponents - other
    Affects Versions: 4.0-ALPHA
         Environment: ubuntu 12.04 LTS
OpenJDK 64-Bit Server VM (20.0-b12)
            Reporter: Liu Chao


I checkout the 4.0-ALPHA version and run the default example with all data from 
xml files imported. When I try 
"http://localhost:8983/solr/collection1/tvrh?shards.qt=/tvrh&collection=collection1&shards=shard1&q=includes%3AUSB&tv=true&tv.all=true&f.includes.tv.offsets=false&tv.fl=includes";
 I got error in TermVectorComponent:


INFO: [collection1] webapp=/solr path=/tvrh 
params={shards.qt=/tvrh&distrib=false&f.includes.tv.offsets=false&tv.all=true&collection=collection1&tv.docIds=9885A004,MA147LL/A,3007&wt=javabin&version=2&NOW=1344321467766&shard.url=ubuntu:8983/solr/collection1/&df=includes&tv=true&tv.fl=includes&qt=/tvrh&isShard=true}
 hits=0 status=400 QTime=1 
Aug 7, 2012 2:37:47 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: For input string: 
"9885A004,MA147LL/A,3007"
        at 
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:397)
        at 
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:182)
        at 
org.apache.solr.handler.component.HttpShardHandler$1.call(HttpShardHandler.java:165)
        at 
org.apache.solr.handler.component.HttpShardHandler$1.call(HttpShardHandler.java:132)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)


If I remove "shards.qt=/tvrh" from query I can get search result without any 
term vector information.

I debug the code and find out that TermVectorComponent are expecting integer 
document id instead of unique key specified in schema.

--
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to