0
votes

is it possible to concatenate string to solr field while we are searching Example: localhost:8983/solr/collection1/select?q=item_type%3Apostings&wt=json&indent=true

now i have one field id i need to append text "locality_" before every id value.so that i need not to to for loop on large data set.

1

1 Answers

1
votes

With Solr 4.0 SOLR-2444 enables to define alias to a field, apply transformer to the value.
I have not used the above, but you can surely explore on the above either by modifying the value with function query add with constant value or defining a Custom Transformer to apply on a alias field.