lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neeraj Lajpal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-8675) Accessing a field in custom request handler is very slow
Date Mon, 15 Feb 2016 13:12:18 GMT

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

Neeraj Lajpal commented on SOLR-8675:
-------------------------------------

I am really sorry, will be more careful in future.

> 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


Mime
View raw message