I am importing data using the DIH and have a need to parse a string, capture two numbers, then populate a field of type=location (which accepts a "lat,long" coordinate pair). The logical thing to do is:
<field column="latLong"
regex="Latitude is ([-\d.]+)\s+ Longitude is ([-\d.]+)\s+"
replaceWith="$1,$2" />
It seems the DIH only knows about a single capture group. So $2 is never used.
Has anyone ever used more than one capture with the regexTransformer? Searching the documentation didn't provide any examples of $2 or $3. What gives, O ye priests of Solr?