Discussion:
<copyfield> with wildcard-source?
Clemens Wyss DEV
2014-09-21 09:47:29 UTC
Permalink
is there a way to use <copyfield> with a wildcard-source? 
For example to copy all fields of a certain dynamic field type:
<dynamicField name="*ss" .../>
<dynamicField name="*ss_suggest" .../>
 ...
<copyfield source="*_ss_suggest" dest="suggest">
Alexandre Rafalovitch
2014-09-21 11:01:49 UTC
Permalink
copyField - Solr is case sensitive, yet does not complain when sees
wrong/misspelt directives (this is being fixed slowly)

https://cwiki.apache.org/confluence/display/solr/Copying+Fields

Regards,
Alex.

Personal: http://www.outerthoughts.com/ and @arafalov
Solr resources and newsletter: http://www.solr-start.com/ and @solrstart
Solr popularizers community: https://www.linkedin.com/groups?gid=6713853
Post by Clemens Wyss DEV
is there a way to use <copyfield> with a wildcard-source?
<dynamicField name="*ss" .../>
<dynamicField name="*ss_suggest" .../>
...
<copyfield source="*_ss_suggest" dest="suggest">
Erick Erickson
2014-09-21 16:43:50 UTC
Permalink
What have you tried? Because it works just fine for me.

It's _really_ helpful to tell us what you've tried and what
you think isn't operating correctly, otherwise
there's not much to go on except guesswork.

Best,
Erick
Post by Clemens Wyss DEV
is there a way to use <copyfield> with a wildcard-source?
<dynamicField name="*ss" .../>
<dynamicField name="*ss_suggest" .../>
...
<copyfield source="*_ss_suggest" dest="suggest">
Clemens Wyss DEV
2014-09-22 05:04:40 UTC
Permalink
I haven't tried anything so far. It was a plain conceptual question ;)
All I have at hand is "Solr in Action" which doesn't (didn't) mention the copyField-wildcards...

Thx!

-----Ursprüngliche Nachricht-----
Von: Erick Erickson [mailto:***@gmail.com]
Gesendet: Sonntag, 21. September 2014 18:44
An: solr-***@lucene.apache.org
Betreff: Re: <copyfield> with wildcard-source?

What have you tried? Because it works just fine for me.

It's _really_ helpful to tell us what you've tried and what you think isn't operating correctly, otherwise there's not much to go on except guesswork.

Best,
Erick
Post by Clemens Wyss DEV
is there a way to use <copyfield> with a wildcard-source?
<dynamicField name="*ss" .../>
<dynamicField name="*ss_suggest" .../> ...
<copyfield source="*_ss_suggest" dest="suggest">
Alexandre Rafalovitch
2014-09-22 12:09:31 UTC
Permalink
Post by Clemens Wyss DEV
All I have at hand is "Solr in Action" which doesn't (didn't) mention the copyField-wildcards...
Well, unless your implementation is also fully theoretical, you also
have all the various examples in the Solr distribution. They
demonstrate many of the features.

Regards,
Alex

Personal: http://www.outerthoughts.com/ and @arafalov
Solr resources and newsletter: http://www.solr-start.com/ and @solrstart
Solr popularizers community: https://www.linkedin.com/groups?gid=6713853
Loading...