field giving weird behavior

28 views
Skip to first unread message

smkiewel

unread,
Sep 27, 2021, 12:02:48 PM9/27/21
to Blacklight Development
I'm trying to create an advanced search window for Arclight. I've managed to get all the fields I want searchable but one. The field is creators_ssim. Here's the weird thing: if you match case and put the entire thing in, it will return results. Why is it not case-insensitive and partial matches? Can someone give me a hint on how to achieve that, like in title_tesim?

Thanks,
Shawn

Tyler

unread,
Sep 27, 2021, 12:58:53 PM9/27/21
to Blacklight Development
Hi Shawn,

The different field suffixes have different actions taken on them at index and query time. The *_ssim fields are strings that are stored as-is, so Solr doesn't break the original string down into stems, doesn't make lower case versions, etc. You'll only get results on exact matches, thus they're good for facet fields and the like. *_tesim fiels, on the other hand, are text fields that have a lot of work done on them at index and query time, so that's why you get partial matches there. You'll just need to pick another version of the creator field from your schema if there is one (not sure how indexing works in your system) or maybe set up a copyfield.

smkiewel

unread,
Sep 27, 2021, 1:03:47 PM9/27/21
to Blacklight Development
Ah, thought so but wasn't sure. _tesim is the one I want, then right? Thank you so much for the assistance.

Tyler

unread,
Sep 27, 2021, 1:10:13 PM9/27/21
to Blacklight Development
Sure thing. There might be a more perfect field, but I think the tesim version will get the job done.
Reply all
Reply to author
Forward
0 new messages