voctoweb icon indicating copy to clipboard operation
voctoweb copied to clipboard

Improve search query - don't just "and" words

Open saerdnaer opened this issue 9 years ago • 5 comments

since https://github.com/voc/media-search-prototype/commit/3e585c4a6b72959c92fdd240b92405372d262be0 the media.ccc.de search prefers matches which match all the search terms, which is actually the best way for most cases.

In some rare changes it would be nice if the user could switch back to the old method, e.g. when a want a list of all talks given by a speaker, which uses two different names for nicknames.

Such search request could look like nick OR surname .

saerdnaer avatar Jan 19 '16 16:01 saerdnaer

Maybe switching/add an option to switch from multi_match to simple_query_string is also an valid idea. compare https://www.elastic.co/guide/en/elasticsearch/reference/2.0/full-text-queries.html

saerdnaer avatar Jan 19 '16 16:01 saerdnaer

see #42

manno avatar Jan 20 '16 15:01 manno

So we now use https://github.com/elastic/elasticsearch-rails and have to find the corresponding config file which was formerly https://github.com/voc/media-search-prototype/blob/master/server/search.pl#L34-L105

saerdnaer avatar Aug 27 '16 11:08 saerdnaer

It's now in https://github.com/voc/voctoweb/blob/master/app/models/concerns/elasticsearch_event.rb#L29-L59

saerdnaer avatar Aug 27 '16 13:08 saerdnaer

TODO: expose query string, cf. https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html

saerdnaer avatar Apr 09 '23 19:04 saerdnaer