Reputation: 806
I'm trying to post a literal, multi-valued field along with a PDF extract. Only one of the field values seems to be being added to the index. Does this need to be passed in a different way?
Currently sending equivalent of (via POST values):
http://localhost:8080/solr/update/extract?literal.keyword_txt=keyword1&literal.keyword_txt=keyword2&literal.keyword_txt=keyword3...etc
Upvotes: 4
Views: 1313
Reputation: 31
I tried the same and found a different solution:
... literal.id_section=1&literal.id_section=2 ...
This worked for me.
The field is defined as follows:
<field name="id_section" type="integer" indexed="true" stored="true" multiValued="true"/>
Versions:
Bye LB
Upvotes: 3
Reputation: 22555
According to the ExtractingRequestHandler Wiki Page about Input Parameters, it supports multivalued literals.
literal.= - Create a field with the specified value. May be multivalued if the Field is multivalued.
I would think that you should pass the multivalued liertal as comma separated values. So perhaps try the following:
http://localhost:8080/solr/update/extract?
literal.keyword_txt=keyword,keyword2,keyword3
Upvotes: 3