karunakar
karunakar

Reputation: 76

concatenating string to solr field value while searching?

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.

Upvotes: 0

Views: 1439

Answers (1)

Jayendra
Jayendra

Reputation: 52809

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.

Upvotes: 1

Related Questions