lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (SOLR-3336) SolrEntityProcessor should substitute params at query time, not startup time
Date Mon, 26 Aug 2013 06:55:52 GMT

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

Shalin Shekhar Mangar reopened SOLR-3336:
-----------------------------------------

      Assignee: Shalin Shekhar Mangar

The fix is not complete. Although the variable substitution was moved to the doQuery() method
but because of the initDone boolean flag, the doQuery method is actually executed only once.
Hence subsequent executions of child SolrEntityProcessor will either return records from the
first execution or return no records at all.

http://www.mail-archive.com/solr-user@lucene.apache.org/msg88002.html
http://stackoverflow.com/questions/15734308/solrentityprocessor-is-called-only-once-for-sub-entities?lq=1
                
> SolrEntityProcessor should substitute params at query time, not startup time
> ----------------------------------------------------------------------------
>
>                 Key: SOLR-3336
>                 URL: https://issues.apache.org/jira/browse/SOLR-3336
>             Project: Solr
>          Issue Type: New Feature
>          Components: contrib - DataImportHandler
>    Affects Versions: 3.6, 4.0-ALPHA
>            Reporter: Lance Norskog
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 3.6.1, 4.0-ALPHA
>
>         Attachments: SolrEntityProcessor.java
>
>
> The SolrEntityProcessor performs variable substitution at startup, not at query time.
This means that this technique cannot work:
> {code}
> <entity get a document>
>    <field SomeField/>
>    <entity SolrEntityProcessor query="${SomeField}"/>
> </entity>
> {code}
> The SEP should substitute the new value of SomeField into each query string.

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