analyzer

How to add analyzer settings in ElasticSearch?

半世苍凉 提交于 2020-01-13 16:18:26
问题 I am using ElasticSearch 1.5.2 and I wish to have the following settings : "settings": { "analysis": { "filter": { "filter_shingle": { "type": "shingle", "max_shingle_size": 2, "min_shingle_size": 2, "output_unigrams": false }, "filter_stemmer": { "type": "porter_stem", "language": "English" } }, "tokenizer": { "my_ngram_tokenizer": { "type": "nGram", "min_gram": 1, "max_gram": 1 } }, "analyzer": { "ShingleAnalyzer": { "tokenizer": "my_ngram_tokenizer", "filter": [ "standard", "lowercase",

elasticsearch mapping analyzer - GET not getting result

浪子不回头ぞ 提交于 2020-01-07 02:48:31
问题 I am trying to create an analyzer, which replaces special character with a whitespace and convert it into uppercase. then after, if I want to search with lowercase also it should work. Mapping Analyzer: soundarya@soundarya-VirtualBox:~/Downloads/elasticsearch-2.4.0/bin$ curl -XPUT 'http://localhost:9200/aida' -d '{ "settings": { "analysis": { "analyzer": { "my_analyzer": { "tokenizer": "standard", "char_filter": [ "my_char_filter" ], "filter": [ "uppercase" ] } }, "char_filter": { "my_char

Mute microphone in speakers but still be able to analyze (createAnalyser) with Web Audio Api?

旧城冷巷雨未停 提交于 2020-01-03 19:58:09
问题 Im trying to create an Analyser node to get the signal from a microphone, and be able to create a graphic with the received input. But I dont want to the speakers to still recive the microphone signal. Source ( microphone ) -> Analyser -> Destination( ? ) The destination is always the speakers... Can I put the destination to a void or similar, and be able to still analyze the microphone? I tried to play with the Volumne (gain node) but that affects the analyser in the end. In summary: I need

How to properly escape OR and AND in lucene query?

我的梦境 提交于 2020-01-03 09:03:40
问题 When I passed in a query "state:OR" lucene gave an error because it considers "OR" as a keyword for boolean clause, but here I actually man the abbreviation of Oregon, the state. I have seen that quoting OR so the query becomes 'state:"OR"' makes it work. but this doesn't sound like a very good approach, since I'll have to do a string substitution for EACH of the keywords that lucene uses: AND OR NOT and others?? I don't how many I tried directly constructing the query instead of doing

what is the best lucene setup for ranking exact matches as the highest

浪子不回头ぞ 提交于 2020-01-01 10:06:07
问题 Which analyzers should be used for indexing and for searching when I want an exact match to rank higher then a "partial" match? Possibly set up custom scoring in a Similarity class? For example, when my index consist of car parts , car , and car shop (indexed with StandardAnalyzer on lucene 3.5), a query for "car" results in: car parts car car shop (basically returned in the order in which they were added, since they all get the same score). What I would like to see is car ranked first, then

what is the best lucene setup for ranking exact matches as the highest

荒凉一梦 提交于 2020-01-01 10:05:07
问题 Which analyzers should be used for indexing and for searching when I want an exact match to rank higher then a "partial" match? Possibly set up custom scoring in a Similarity class? For example, when my index consist of car parts , car , and car shop (indexed with StandardAnalyzer on lucene 3.5), a query for "car" results in: car parts car car shop (basically returned in the order in which they were added, since they all get the same score). What I would like to see is car ranked first, then

How to run and understand CUDA Visual Profiler?

梦想的初衷 提交于 2019-12-29 02:01:11
问题 I had setup CUDA 5.0 and my project of CUDA work good, but I don't know how to analyze my CUDA project with Visual Profiler ? How to run it ? Have I need to install some more ? And how to do it ? My computer use Window 7 64 bit, CUDA 5.0 64 bit, VS 2012 回答1: The visual profiler is launched by typing: nvvp at a windows command prompt. You may wish to read the documentation 来源: https://stackoverflow.com/questions/24740477/how-to-run-and-understand-cuda-visual-profiler

Does changing from Simple Analyzer of Elastic search to Standard Analyzer requires the re-index?

ぐ巨炮叔叔 提交于 2019-12-25 00:06:17
问题 I changed the simple analyzer on a field to Standard analyzer and tested it locally and it's working fine. I don't have to re-index all my documents in ES. But according to this SO post and this ES doc, looks like we need to re-index if we add/change the analyzer on a field. I am confused as its working fine now and it would take consider amount of time if I do the re-indexing and want to avoid it, if it's not required. Let me know if somebody faced the similar situation and what they did ?

Elasticsearch can't update non dynamic settings

百般思念 提交于 2019-12-24 15:21:38
问题 I am trying to create a test analyzer to experiment on analysis on Elastic Search. I have an index created called "mytest" which is available and searchable, but when I try to create a custom analyzer I get below error { "error": "ElasticsearchIllegalArgumentException[Can't update non dynamic settings[[index.analysis.analyzer.content.type, index.analysis.analyzer.content.tokenizer]] for open indices [[mytest]]]", "status": 400 } Now I am not sure on restrictions on updating settings but I

ElasticSearch Analyzer on text field

孤街浪徒 提交于 2019-12-24 08:12:43
问题 Here is my field on elasticSearch : "keywordName": { "type": "text", "analyzer": "custom_stop" } Here is my analyzer : "custom_stop": { "type": "custom", "tokenizer": "standard", "filter": [ "my_stop", "my_snow", "asciifolding" ] } And here are my filters : "my_stop": { "type": "stop", "stopwords": "_french_" }, "my_snow" : { "type" : "snowball", "language" : "French" } Here are my documents my index (in my only field : keywordName) : "canne a peche", "canne", "canne a peche telescopique",