assafmo
assafmo

Reputation: 1086

solr text indexed as array of text

Im trying to index the following document in solr 6.0.0:

{
    "content_t":"A bunch of content"
} 

And it's indexed as:

{
    "content_t":["A bunch of content"] 
} 

what am I to do?

Upvotes: 3

Views: 1144

Answers (1)

Abhijit Bashetti
Abhijit Bashetti

Reputation: 8658

You must have added the attribute as multivalued = true for the field content_t.

A multivalued field is useful when there are more than one value present for the field. As you don't want to store the same in multivalue form, remove the attribute for the same field.

Remove the same and restart the server.

Re-index the data.

Upvotes: 6

Related Questions