dataimporthandler - How to do multiple replacements with Solr DIH RegexTransformer? -
i using solr dataimporthandler regextransformer , field i'd replace different patterns different values. say, replace smith miller , john joe. single replacement easy:
<field column="text" regex="smith" replacewith="miller"/> but how sec part, replace john joe?
note not asking fancy regex rather how apply more 1 substitution on single field.
i believe, can utilize groupnames specify ordered substitutions. refer original issue
example solr documentation:
<field column="fullname" regex="mr(\w*)\b(.*)" groupnames="firstname,lastname"/> solr dataimporthandler
No comments:
Post a Comment