lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <>
Subject DocTransformer not always working
Date Wed, 14 Dec 2016 21:55:26 GMT
Hello - I just spotted an oddity with all two custom DocTransformers we sometimes use on Solr
6.3.0. This particular transformer in the example just transforms a long (or int) into a sequence
of bits. I just use it as an convenience to compare minhashes with my eyeballs. First example
is very straightforward, fl=minhash:[binstr], show only the minhash field, but as a bit sequence.


The document is empty! This also happens with another transformer. The next example i also
request the lang field:

solr/search/select?omitHeader=true&wt=json&indent=true&rows=1&sort=id asc&q=*:*&fl=lang,minhash:[binstr]

Ok, at least i now get the lang field, but the transformed minhash is nowhere to be seen.
In the next example i request all fields and the transformed minhash:

        ...other fields here

So it seems that right now, i can only use a transformer properly if i request all fields.
I believe it used to work with all three examples just as you would expect. But since i haven't
used transformers for a while, i don't know at which version it stopped working like that
(if it ever did of course :)

Did i mess something up or did a bug creep on me?


View raw message