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.
Analyze
editAnalyze
editPerforms the analysis process on the specified text and returns the token breakdown for the text.
Examples
editFluent Syntax
editvar result = client.Analyze(a => a .Index("myindex") .Analyzer("whitespace") .Text("text to analyze") );
Object Initializer Syntax
editvar request = new AnalyzeRequest("text to analyze") { Index = "myindex", Analyzer = "whitespace" }; var result = client.Analyze(request);
Handling the Analyze response
editresult
above is an IAnalyzeResponse
which contains a collection of tokens found in the Tokens
property which is an IEnumerable<AnalyzeToken>
.