Search code examples
solrapache-tikasolr-cell

ExtractingRequestHandler - how do you post multi-valued literal fields?


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

Solution

  • 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