I made a schema that included a field called "id" and a multi-valued field called "lookupids". I created a file that had a header row of "id<tab>lookupids", and data rows that had a guid followed by random ints separated by commas. ie,
The file contained 100000 entries, and I was able to index the file using a URL like this:
One thing that I was expecting to happen was for the results to return the lookupids as an array. Instead the lookupids field values are returned the same way they were stored in the source file.
<result name="response" numFound="1" start="0">
The reason I was expecting the lookupids to be returned as an array is that the lookupids field was defined as follows:
<field name="lookupids" type="commaDelimited" indexed="true" stored="true" multivalued="true"/>
I figured that having the field defined as multivalued, and having the commaDelimited type set to use the PatternTokenizer with a pattern that separates using the comma to identify tokens, would give the array response.
I'll update this post once I figure out how to get the results as an array.
Post a Comment