[infinispan-issues] [JBoss JIRA] (ISPN-3718) Select which protobuf fields to index
Gustavo Fernandes (JIRA)
issues at jboss.org
Fri Jun 27 04:48:25 EDT 2014
[ https://issues.jboss.org/browse/ISPN-3718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979869#comment-12979869 ]
Gustavo Fernandes commented on ISPN-3718:
-----------------------------------------
The new protoparser embedded in the protostream library can retain comments at runtime, so something like this would be possible:
{code}
message User {
//...
/* @Indexed(Analyzer=StandardAnalyzer) */
required string name = 3
//...
}
{code}
> Select which protobuf fields to index
> -------------------------------------
>
> Key: ISPN-3718
> URL: https://issues.jboss.org/browse/ISPN-3718
> Project: Infinispan
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Embedded Querying
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Labels: 64QueryBlockers
>
> Currently we index all fields. An interesting idea is to use a custom protobuf Option (see 'Custom Options' section here https://developers.google.com/protocol-buffers/docs/proto) to indicate which message types and specifically which fields should be indexed, similar to Hibernate Search annotations.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the infinispan-issues
mailing list