You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Neeraj Lajpal (JIRA)" <ji...@apache.org> on 2016/02/12 11:25:18 UTC

[jira] [Created] (SOLR-8675) Accessing a field in custom request handler is very slow

Neeraj Lajpal created SOLR-8675:
-----------------------------------

             Summary: Accessing a field in custom request handler is very slow
                 Key: SOLR-8675
                 URL: https://issues.apache.org/jira/browse/SOLR-8675
             Project: Solr
          Issue Type: Improvement
          Components: search, SearchComponents - other
    Affects Versions: 4.3.1
            Reporter: Neeraj Lajpal



I am trying to access a field in custom request handler. I am accessing it like this for each document:

Document doc;
doc = reader.document(id);
DocFields = doc.getValues("state");
There are around 600,000 documents in the solr. For a query running on all the docs, it is taking more than 65 seconds.

I have also tried SolrIndexSearcher.doc method, but it is also taking around 60 seconds.

Removing the above lines of code bring down the qtime to milliseconds. But, I need to access that field for my algo.

Is there a more optimised way to do this?




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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