[ 
https://issues.apache.org/jira/browse/SOLR-1535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197390#comment-13197390
 ] 

Andrzej Bialecki  commented on SOLR-1535:
-----------------------------------------

Avro adds yet another dependency, which would make sense if Solr used Avro 
instead of JavaBin - but that's a separate discussion that merits a separate 
JIRA issue... as it isn't used now I'd rather avoid putting additional burden 
on clients just for the sake of this patch.

JSON could be a nice alternative, if it only supported binary data natively (it 
doesn't, one has to use base64 - however, it's [not that awful as you could 
think|http://stackoverflow.com/questions/1443158/binary-data-in-json-string-something-better-than-base64]).
 I wanted to avoid complex formats like XML - too much boilerplate for such 
small bits of data. So the current custom serialization tried to strike a 
balance between simplicity, flexibility and low overhead.

Serialization of terms was also discussed in SOLR-1632 - e.g. this patch 
doesn't serialize binary terms properly.
                
> Pre-analyzed field type
> -----------------------
>
>                 Key: SOLR-1535
>                 URL: https://issues.apache.org/jira/browse/SOLR-1535
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 1.5
>            Reporter: Andrzej Bialecki 
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-1535.patch, preanalyzed.patch, preanalyzed.patch
>
>
> PreAnalyzedFieldType provides a functionality to index (and optionally store) 
> content that was already processed and split into tokens using some external 
> processing chain. This implementation defines a serialization format for 
> sending tokens with any currently supported Attributes (eg. type, posIncr, 
> payload, ...). This data is de-serialized into a regular TokenStream that is 
> returned in Field.tokenStreamValue() and thus added to the index as index 
> terms, and optionally a stored part that is returned in Field.stringValue() 
> and is then added as a stored value of the field.
> This field type is useful for integrating Solr with existing text-processing 
> pipelines, such as third-party NLP systems.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to