lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shotaro Kamio (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-3992) QuerySenderListener doesn't populate document cache
Date Thu, 25 Oct 2012 12:27:12 GMT

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

Shotaro Kamio updated SOLR-3992:
--------------------------------

    Description: 
QuerySenderListner class can be used to populate cache on startup of solr (firstSearcher event).
The code looks trying to populate document cache also. But it doesn't.

{code}
        NamedList values = rsp.getValues();
        for (int i=0; i<values.size(); i++) {
          Object o = values.getVal(i);
          if (o instanceof DocList) {
{code}

It is because value of response object uses ResultContext object to store document list, not
DocList object.


  was:
QuerySenderListner class can be used to populate cache on startup of solr (firstSearcher event).
It populates caches. The code looks trying to populate document cache also. But it doesn't.

{code}
        NamedList values = rsp.getValues();
        for (int i=0; i<values.size(); i++) {
          Object o = values.getVal(i);
          if (o instanceof DocList) {
{code}

It is because value of response object uses ResultContext object to store document list, not
DocList object.


    
> QuerySenderListener doesn't populate document cache
> ---------------------------------------------------
>
>                 Key: SOLR-3992
>                 URL: https://issues.apache.org/jira/browse/SOLR-3992
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Shotaro Kamio
>
> QuerySenderListner class can be used to populate cache on startup of solr (firstSearcher
event). The code looks trying to populate document cache also. But it doesn't.
> {code}
>         NamedList values = rsp.getValues();
>         for (int i=0; i<values.size(); i++) {
>           Object o = values.getVal(i);
>           if (o instanceof DocList) {
> {code}
> It is because value of response object uses ResultContext object to store document list,
not DocList object.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message