lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Store Java object in field and retrieve it in custom function?
Date Thu, 19 Jun 2014 13:38:45 GMT
Silly question perhaps, but is your binary field type _indexing_ the
content? You're pulling the values from the indexed terms, how is your
binary field type analyzing the input on its way to the index?

Since it's base64, why not just index it as a string type? Do you even
need binary here at all? I confess that I don't know the innards of
the binary type so I'm side-stepping the issue :)...


On Thu, Jun 19, 2014 at 12:27 AM, Costi Muraru <> wrote:
> Hi,
> I'm trying to save a Java object in a binary field and afterwards use this
> value in a custom solr function.
> I'm able to put and retrieve the Java object in Base64 via the UI, but I
> can't seem to be able to retrieve the value in the custom function.
> In the function I'm using:
> termsIndex = FieldCache.DEFAULT.getTermsIndex(reader, fieldName);
> termsIndex.get(doc, spare);
> Log.debug("Length: " + spare.length);
> The length is always 0. It works well if the field type is not binary, but
> string.
> Do you have any tips?
> Thanks,
> Costi

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message