simon987 / sist2

Lightning-fast file system indexer and search tool
GNU General Public License v3.0
843 stars 55 forks source link

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

Open mbhkoay opened 8 months ago

mbhkoay commented 8 months ago

Device Information:

  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

seliverstov-de commented 7 months ago

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

dpieski commented 3 months ago

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.

MrReSc commented 1 week ago

I have the same problem with version 3.4.2. grafik