CDRH / lewisandclark

The Journals of the Lewis and Clark Expedition Rails Site
https://lewisandclarkjournals.unl.edu
1 stars 0 forks source link

Highlighting not showing up #197

Open karindalziel opened 7 years ago

karindalziel commented 7 years ago

https://lewisandclarkjournals.unl.edu/search?utf8=%E2%9C%93&qfield=text&qtext=intestines&commit=Search

Last 4 entries not showing highlighting

jduss4 commented 7 years ago

This doesn't appear to be a problem with the rsolr wrapper or rsolr, I am seeing this behavior in solr's results (scroll to bottom for highlighting):

http://cors1601.unl.edu:8983/solr/api_lc/select?q=text%3Aintestines&wt=json&indent=true&hl=true&hl.simple.pre=%3Cem%3E&hl.simple.post=%3C%2Fem%3E

jduss4 commented 7 years ago

Search for other words inside of the docs with empty highlighting results highlights correctly. Weirdly, when I try searching for "intestine" in my browser, the following occurs:

image

jduss4 commented 6 years ago

I am still totally baffled by this issue, that's my update. All I can think of is that we might want to try reindexing everything to make sure that all of the fields are "stored" in order to get results back, but since we've never really done major schema changes or only updated some of the documents, I don't know as that the field's stored contents are going to help.

techgique commented 6 years ago

That screenshot looks like there is some mismatch in the index offset for where the characters are in the text. No idea how that would happen, but reindexing seems like a good next step. Maybe just reindex a single document and see if that fixes its highlighting? :thinking: