WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Analyzeedit
Performs the analysis process on the specified text and returns the token breakdown for the text.
Examplesedit
Fluent Syntaxedit
var result = client.Analyze(a => a .Index("myindex") .Analyzer("whitespace") .Text("text to analyze") );
Object Initializer Syntaxedit
var request = new AnalyzeRequest("text to analyze") { Index = "myindex", Analyzer = "whitespace" }; var result = client.Analyze(request);
Handling the Analyze responseedit
result
above is an IAnalyzeResponse
which contains a collection of tokens found in the Tokens
property which is an IEnumerable<AnalyzeToken>
.