lucene-dev mailing list archives

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


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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message