Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyze API: An API to analyzer custom text based on an optional analyzer #529

Closed
kimchy opened this issue Nov 21, 2010 · 4 comments
Closed

Comments

@kimchy
Copy link
Member

kimchy commented Nov 21, 2010

An API to analyze custom text provided ("within" a specific analyzer). The REST endpoint is:

curl -XGET localhost:9200/{index}/_analyze

For example:

curl -XGET localhost:9200/test/_analyze?text=this is a test

An analyzer can also be provided to use a different analyzer than the default indexing analyzer for the index:

curl -XGET localhost:9200/test/_analyze?analyzer=whitespace&text=this is a test

The text can also be provided as the request body.

The format of the response can also be provided, by default it is detailed (breaking each token information into a json object). The text format provides the analyzed data in a single text response.

@kimchy
Copy link
Member Author

kimchy commented Nov 21, 2010

Analyze API: An API to analyzer custom text based on an optional analyzer, closed by b4113d5.

@clintongormley
Copy link

Documentation missing for analyze

@lukas-vlcek
Copy link
Contributor

@kimchy
Copy link
Member Author

kimchy commented Jan 5, 2011

Analyze was actually documented (under admin/indices/analyze), just not listed in the navigation tree.

medcl pushed a commit to medcl/elasticsearch that referenced this issue Jul 1, 2011
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants