sist2 icon indicating copy to clipboard operation
sist2 copied to clipboard

The text preview when clicking on the additional information icon does not load

Open mbhkoay opened this issue 2 years ago • 3 comments

Device Information:

  • OS: Unraid
  • Deployment: [Docker]
  • Browser : Tried chrome & opera
  • SIST2 Version: 3.4.1 for own machine, 3.4.0 for demo
  • Elasticsearch Version: 7.17.9
  1. Clicking on the small (i) icon

Expected behavior Thought it would have shown the context of the search term. Used to be there is a NLP? model to analyze the text

Actual Behavior A blue loading bar is shown

Screenshots image

mbhkoay avatar Dec 31 '23 05:12 mbhkoay

+1 I have the same problem on versions 3.3.6 and 3.4.0. On version 3.3.4 everything is ok

seliverstov-de avatar Feb 08 '24 12:02 seliverstov-de

The issue may be around here to include the value in the query: https://github.com/simon987/sist2/blame/2436e52a62bc02c20dfafdef5f4b674ddbe49574/sist2-vue/src/Sist2Api.js#L554C10-L554C10

The error pops up because of this e._source not having an index value. So _getIndexRoot cannot find a null in this.Sist2Info.indices. (This line here) image

If there is already a function that converts the first half of the documentID, e._id back into the index id, then you can pass something like getIndexFromDocID(e._id) into _getIndexRoot, otherwise, the query linked to above may need to also retrieve the index value.

dpieski avatar Jun 05 '24 14:06 dpieski