[
https://issues.apache.org/jira/browse/SOLR-7257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14365179#comment-14365179
]
Paolo Cappuccini edited comment on SOLR-7257 at 3/17/15 2:34 PM:
-----------------------------------------------------------------
<field name="id1" type="string" indexed="true" stored="true" required="false" />
<field name="id2" type="string" indexed="true" stored="true" required="false" />
....
<copyField source="id1" dest="id2"/>
I can search by "id2" and find my documents.
The field "id2", as you can see, is declared "stored" but yes, it is a
copyfieldtarget.
If i retrieve results or get a document , though i specify i fieldlist the
field "id2" this is not returned.
I simply query "*:*" and ask "fl:id1,id2"
In realtimegetcomponent i noticed a "if isCopyFieldTarget(..)" that prevent the
field to be returned but i couldn't find similar filter in search results.
was (Author: cappuccini):
<field name="acl_read" type="ukeyvalue" indexed="true" stored="true"
multiValued="true" required="false" />
....
<copyField source="acl_explicit" dest="acl_read"/>
<copyField source="id" dest="acl_read"/>
<copyField source="acl_parent" dest="acl_read"/>
<copyField source="created_by" dest="acl_read"/>
<copyField source="ancestors" dest="acl_read"/>
These fields are all valued and infact i can search by acl_read and find my
documents.
The field "acl_read", as you can see, is declared "stored" but yes, it is a
copyfieldtarget.
But if i retrieve results or get a document , though i specify i fieldlist the
field "acl_read" this is not returned.
I simply query "*:*" and ask "fl:*,acl_read"
In realtimegetcomponent i noticed a "if isCopyFieldTarget(..)" that prevent the
field to be returned but i couldn't find similar filter in search results.
> copyfieldtargets are not returned
> ---------------------------------
>
> Key: SOLR-7257
> URL: https://issues.apache.org/jira/browse/SOLR-7257
> Project: Solr
> Issue Type: Bug
> Affects Versions: 4.10.3
> Reporter: Paolo Cappuccini
>
> copyfieldtargets are purged from field list in realtimeget and search results
> even if they are declared in schema like stored fields.
> If i understood the source code if declared like stored fields they are
> correctly saved in lucene index but there is not way to return them.
> This is a bug or intended behaviour?
> Perhaps it should be checked if the copied field is stored and return value
> in searches and gets.
> Thanks
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]