[
https://issues.apache.org/jira/browse/SOLR-5619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13865611#comment-13865611
]
Hoss Man commented on SOLR-5619:
--------------------------------
This came out of an idea i mentioned to Anshum offline when talking about his
test for SOLR-5594, and some confusion i had based on what i
remembered/imagined about some test code sarowe added in SOLR-5354.
my suggestion was that some of the things that existed in the test only
FieldType in SOLR-5354, and in Anshum's SOLR-5594 patch, could/should probably
just be improvements to BinaryField directly.
In SOLR-5354 a sortable subclass of BinaryField via docvalues -- anshum and i
were just discussing the idea of using something like the existing
BinaryTokenStream functinality from the lucene core test utils to promote the
indexable/sortable logic up into BinaryField itself.
BinaryField already requires that external systems deal with it (the stored
field part) via base64 encoded strings -- so from a query standpoint, yes --
you'd do term queries against it via base64, but the sorting of the indexed
terms would be just like in SOLR-5354.
bq. I suspect that there are a bunch of details that make this less useful than
one might think, but that's only a guess.
it probably wouldn't be super useful to a lot of people, but it would be nice
to have a FieldType that gives you some more direct access to doing things
directly with BytesRef in lucene -- if nothing else it would help act as a
proof of concept/methodology for how people can write custom FieldTypes that do
things with their specialized binary data.
If it doesn't make sense, it doesn't make sense -- but it seemed like it might
be worth while to investigate given the instances where it's made sense to
create weird little subclasses in various tests.
> Improve BinaryField to make it Sortable and Indexable
> -----------------------------------------------------
>
> Key: SOLR-5619
> URL: https://issues.apache.org/jira/browse/SOLR-5619
> Project: Solr
> Issue Type: Improvement
> Affects Versions: 4.6
> Reporter: Anshum Gupta
> Assignee: Anshum Gupta
>
> Currently, BinaryField can neither be indexed nor sorted on.
> Having them indexable and sortable should come in handy for a reasonable
> amount of use cases e.g. wanting to index binary data (could come from
> anything non-text).
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]