Text search doesn't seem to operate intuitively on substrings, even after the changes in PR #81 that look like they were designed to make some changes to Creator text searching.
For example, the following works, where the search term is an exact match on the Creator field:
However, the following all fail to return any results, where the expected free text searches should be matching on substrings of the Creator and returning the same or more results:
https://images-dev.ala.org.au/?q=Axel+W.+Eriksson
https://images-dev.ala.org.au/?q=Axel
https://images-dev.ala.org.au/?q=Eriksson
Incase the new 1.0.10-SNAPSHOT changes required manual changes to the Elasticsearch index, I tried the three Admin Tools that looked relevant in different orders, without success:
First I tried Reindex All Images, which didn't fix the issue.
Then I tried Rebuild Keywords, which didn't fix the issue.
Then I tried Re-initialise Index, which seemed to leave an empty index, so I had to then try both Reindex All Images (which enabled the exact matching again), and then Rebuild Keywords (which didn't seem to have any additional effect).
image-service-1.0.9 was deployed to the images-dev server still. Switching it to use 1.0.10-SNAPSHOT and then re-initialising and reindexing fixed this issue.
Text search doesn't seem to operate intuitively on substrings, even after the changes in PR #81 that look like they were designed to make some changes to Creator text searching.
For example, the following works, where the search term is an exact match on the Creator field:
https://images-dev.ala.org.au/?q=Axel+W.+Eriksson%2C+1846-1901
However, the following all fail to return any results, where the expected free text searches should be matching on substrings of the Creator and returning the same or more results:
https://images-dev.ala.org.au/?q=Axel+W.+Eriksson
https://images-dev.ala.org.au/?q=Axel
https://images-dev.ala.org.au/?q=Eriksson
Incase the new 1.0.10-SNAPSHOT changes required manual changes to the Elasticsearch index, I tried the three Admin Tools that looked relevant in different orders, without success:
First I tried
Reindex All Images
, which didn't fix the issue.Then I tried
Rebuild Keywords
, which didn't fix the issue.Then I tried
Re-initialise Index
, which seemed to leave an empty index, so I had to then try bothReindex All Images
(which enabled the exact matching again), and thenRebuild Keywords
(which didn't seem to have any additional effect).