You are looking at documentation for an older release.
Not what you want? 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>.