Skip to content

Commit

Permalink
include text analyzer on readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dgkanatsios committed May 1, 2017
1 parent a4ddab6 commit 541f645
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ client.getIndexStats('myindex', function(err, stats){
// optional error, or the list of index stats from the service
});

var data = {
'text': 'Text to analyze',
'analyzer': 'standard'
}
// shows how an analyzer breaks text into tokens
client.testAnalyzer('myindex', data, function (err, tokens) {
//optional error, or array of tokens
}

// delete an index
client.deleteIndex('myindex', function(err){
// optional error
Expand Down

0 comments on commit 541f645

Please sign in to comment.