synonym

How to replace greek letter synonyms using search_analyzer in Elasticsearch

旧街凉风 提交于 2020-05-31 03:21:06
问题 I wish to improve search in an ES index by searching for greek letter synonyms (α as alpha). In this post they use a 'regular' analyzer that would require to re-index all of the data. My question is how to accomplish this synonym search using a search_analyzer only. Thanks! Here is an example of two entries and a search query, I would like this single query to return both docs PUT test_ind/_doc/2 { "title" : "α" } PUT test_ind/_doc/1 { "title" : "alpha" } POST test_ind/_search { "query": {

How to replace greek letter synonyms using search_analyzer in Elasticsearch

天涯浪子 提交于 2020-05-31 03:19:07
问题 I wish to improve search in an ES index by searching for greek letter synonyms (α as alpha). In this post they use a 'regular' analyzer that would require to re-index all of the data. My question is how to accomplish this synonym search using a search_analyzer only. Thanks! Here is an example of two entries and a search query, I would like this single query to return both docs PUT test_ind/_doc/2 { "title" : "α" } PUT test_ind/_doc/1 { "title" : "alpha" } POST test_ind/_search { "query": {

SQL Server multiple schema object issues

我只是一个虾纸丫 提交于 2020-02-15 08:18:58
问题 I have database that has multiple schemas and objects under them. I want to consolidate the objects into one schema. I tried ALTER SCHEMA dbo TRANSFER <custom_schema>.<table_name> I get an object already exists message However, I can't see it in the Management studio and SELECT * from dbo.<table_name> returns object does not exist. Looks like some system table entry is out of whack. I looked at sysobjects and it has only one entry for . Any suggestions on how to trouble shoot/ fix this issue

Synonym DICTIONARY for `simple` language is not working

断了今生、忘了曾经 提交于 2020-02-08 02:39:05
问题 I am supposing that we can use this old recipe and only replace the language german to language simple (that is the "no language")... But it is not working. CREATE TEXT SEARCH DICTIONARY my_synonym ( TEMPLATE = synonym, SYNONYMS = synonym_sample -- default /usr/share/postgresql/12/tsearch_data/synonym_sample.syn ); CREATE TEXT SEARCH CONFIGURATION my_synonym(COPY='simple'); -- need it?? ALTER TEXT SEARCH CONFIGURATION my_synonym ALTER MAPPING FOR asciiword, asciihword, hword_asciipart, word,

Multi-word synonym search in Solr

淺唱寂寞╮ 提交于 2020-01-22 15:45:51
问题 I'm trying to use a synonym filter to search for a phrase. peter=> spider man, spiderman, Mary Jane, ..... I use the default configuration. When I put these synonyms into synonym.txt and restart Solr it seems to work only partially: It starts to search for "spider" , "man" , "spiderman" , "Mary" and "Jane" but what I want to search for are the meaningful combinations - like "spider man" , "Mary Jane" and "spiderman" . 回答1: Yes sadly this is a well known problem due to how the Solr query

Invalid synonym rule when using two files

丶灬走出姿态 提交于 2020-01-16 15:41:52
问题 I have two synonyms files with few thousand lines, here is the sample causing the problem: en_synonyms file : cereal, semolina, wheat fr_synonyms file : ble, cereale, wheat This is the error I got : { "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "failed to build synonyms" } ], "type": "illegal_argument_exception", "reason": "failed to build synonyms", "caused_by": { "type": "parse_exception", "reason": "Invalid synonym rule at line 1", "caused_by": { "type":

Build Lucene Synonyms

为君一笑 提交于 2020-01-06 18:12:07
问题 I've the following code static class TaggerAnalyzer extends Analyzer { @Override protected TokenStreamComponents createComponents(String s, Reader reader) { SynonymMap.Builder builder = new SynonymMap.Builder(true); builder.add(new CharsRef("al"), new CharsRef("americanleague"), true); builder.add(new CharsRef("al"), new CharsRef("a.l."), true); builder.add(new CharsRef("nba"), new CharsRef("national" + SynonymMap.WORD_SEPARATOR + "basketball" + SynonymMap.WORD_SEPARATOR + "association"),

Synonym Maps in Azure Search, synonym phrases

…衆ロ難τιáo~ 提交于 2020-01-05 06:32:03
问题 I'm trying to use synonym maps in Azure Search and i'm running into a problem. I want to have several words and phrases map into a single search query. In other words, when i search for either: product 123 , product0123 , product 0123 i want the search to return results for a query phrase: product123 . After reading the tutorial it all seemed pretty straight forward. I'm using .Net Azure.Search SDK 5.0 so i've done the following: var synonymMap = new SynonymMap { Name = "test-map", Format =

Synonym Maps in Azure Search, synonym phrases

☆樱花仙子☆ 提交于 2020-01-05 06:31:20
问题 I'm trying to use synonym maps in Azure Search and i'm running into a problem. I want to have several words and phrases map into a single search query. In other words, when i search for either: product 123 , product0123 , product 0123 i want the search to return results for a query phrase: product123 . After reading the tutorial it all seemed pretty straight forward. I'm using .Net Azure.Search SDK 5.0 so i've done the following: var synonymMap = new SynonymMap { Name = "test-map", Format =

Synonym Maps in Azure Search, synonym phrases

落爺英雄遲暮 提交于 2020-01-05 06:31:08
问题 I'm trying to use synonym maps in Azure Search and i'm running into a problem. I want to have several words and phrases map into a single search query. In other words, when i search for either: product 123 , product0123 , product 0123 i want the search to return results for a query phrase: product123 . After reading the tutorial it all seemed pretty straight forward. I'm using .Net Azure.Search SDK 5.0 so i've done the following: var synonymMap = new SynonymMap { Name = "test-map", Format =