Questions tagged [analyzer]

For questions related to a person or device that analyses (or analyzes) given data

An analyser, also spelt analyzer, is a person or device that analyses given data. It examines in detail the structure of the given data and tries to find patterns and relationships between parts of the data. An analyser can be a piece of hardware or a software program running on a computer.

Information is taken from Wikipedia. The following article contains more information about the topic and links to other topics about commonly used analyzer types.

642 questions
20
votes
1 answer

How to specify an analyzer while creating an index in ElasticSearch

I'd like to specify an analyzer, name it, and use that name in a mapping while creating an index. I'm lost, my ES instance always returns me an error message. This is, roughly, what I'd like to do: "settings": { "mappings": { "alfedoc": { …
Alfe
  • 56,346
  • 20
  • 107
  • 159
19
votes
2 answers

"CS8700: Multiple analyzer config files cannot be in the same directory" but only one StyleCop file

I'm trying to learn to use StyleCop on a personal project. It's not a very big one, and the solution structure is below: - MySolution (2 of 2 projects) - Solution Items - .editorconfig - .gitignore - CODEOWNERS -…
Metomorphose
  • 434
  • 3
  • 14
17
votes
3 answers

Why can't Microsoft analyzers find Microsoft.CodeAnalysis?

I'm trying to add Microsoft.CodeAnalysis.FXCopAnalyzers (latest stable version) to my ASP.NET project. When I install it via NuGet, I get a ton of errors like: An instance of analyzer…
Brian Gradin
  • 2,165
  • 1
  • 21
  • 42
15
votes
2 answers

elasticsearch remove custom analyzer / filter

I'm new to Elasticsearch and I was wondering if it's possible to delete a custom analyzer or a custom filter from an index. For example, imagine the following index settings: "settings" : { "analysis": { "filter":{ …
user2970458
  • 151
  • 1
  • 3
14
votes
3 answers

Search for name(text) with spaces in elasticsearch

Searching for names(text) with spaces in it, causing problem to me, I have mapping similar to "{"user":{"properties":{"name":{"type":"string"}}}}" Ideally what it should return and rank results as follows 1) Bring on top names that exact match…
maaz
  • 4,371
  • 2
  • 30
  • 48
13
votes
1 answer

What is the advantage to use the Microsoft.CodeAnalysis.FxCopAnalyzers nuget over the default Managed Binary Analysis ruleset?

I currently use the Managed Binary Analysis and it looks like the nuget adds the same rules (maybe less). I also use this SonarQube plugin: https://github.com/SonarQubeCommunity/sonar-fxcop. What is the nuget for exactly?
Shay
  • 183
  • 2
  • 13
13
votes
2 answers

How to add a custom code analyzer to a project without nuget or VSIX?

I want to write a custom code analyzer in Visual Studio 2015 for a C# ConsoleApplication. For this reason I don't want to create a seperate "Analyzer with Code Fix" project from template, because this requires to add this analyzer in my projects as…
Michi-2142
  • 1,170
  • 3
  • 18
  • 39
12
votes
1 answer

Excluding a file from the roslyn analyzers

Since we have a lot of generated code, some roslyn analyzers go crazy about this code. Is there any way to exclude some files from analyzers?
Mantzas
  • 2,463
  • 3
  • 25
  • 35
12
votes
2 answers

How do I use sklearn CountVectorizer with both 'word' and 'char' analyzer? - python

How do I use sklearn CountVectorizer with both 'word' and 'char' analyzer? http://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html I could extract the text features by word or char separately but how do…
alvas
  • 115,346
  • 109
  • 446
  • 738
12
votes
4 answers

Turn Image into Text - Java

This is an interesting topic. Basically, I have an image that contains some text. How do I extract the text from the image? I have already tried many things, but everything I do is very tedious and usually does not work. I am simply wondering if…
Dylan Wheeler
  • 6,928
  • 14
  • 56
  • 80
11
votes
1 answer

Roslyn Analyzer Rule does not fail the build

Following on from this tutorial from MS, I have created an analyzer for Roslyn. According to the page, you can mark the rule as DiagnosticSeverity.Error, and this will cause the build to break: In the line declaring the Rule field, you can also…
Obsidian Phoenix
  • 4,083
  • 1
  • 22
  • 60
11
votes
1 answer

How to wisely combine shingles and edgeNgram to provide flexible full text search?

We have an OData-compliant API that delegates some of its full text search needs to an Elasticsearch cluster. Since OData expressions can get quite complex, we decided to simply translate them into their equivalent Lucene query syntax and feed it…
Val
  • 207,596
  • 13
  • 358
  • 360
11
votes
2 answers

Elasticsearch synonym analyzer not working

EDIT: To add on to this, the synonyms seem to be working with basic querystring queries. "query_string" : { "default_field" : "location.region.name.raw", "query" : "nh" } This returns all of the results for New Hampshire, but a "match"…
Erica Stockwell-Alpert
  • 4,624
  • 10
  • 63
  • 130
11
votes
4 answers

Configure elasticsearch mapping with java api

I have a few elasticsearch fields that I don't want to analyze before indexing. I have read that the right way to do this is by altering the index mapping. Right now my mapping looks like this: { "test" : { "general" : { "properties" : { …
user3618259
  • 121
  • 1
  • 1
  • 3
10
votes
3 answers

Static Analyzer error with iOS8 SDK

Recently I updated to Xcode 6 beta 6 with iOS 8 SDK. And while running static analyser I jumped into a problem with the following errors. error: error reading 'pic' error: no analyzer checkers are associated with '-mrelocation-model' 2 errors…
arango_86
  • 4,236
  • 4
  • 40
  • 46
1
2
3
42 43