Shalin Shekhar Mangar wrote:
On Thu, Jul 2, 2009 at 11:38 PM, Mark Miller <markrmil...@gmail.com> wrote:

Shalin Shekhar Mangar wrote:

It selects all matching nodes. But if the field is not multi-valued, it
will
store only the last value. I guess this is what is happening here.



So do you think it should match them all and add the concatenated text as
one field?

That would be more Xpath like I think, and less arbitrary than just
choosing the last one.


I won't call it arbitrary because it creates a SolrInputDocument with values
from all the matching nodes just like you'd create any multi-valued field.
Then shouldnt it throw an error? If your field is not multivalued, but the XML is multivalued, it does seem arbitrary to pick the last node when Xpath says to select them all.

It seems it should through an error (saying to use flatten or a multifield?) or concatenate all the text?

--
- Mark

http://www.lucidimagination.com



Reply via email to