Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
richardwilly98 committed Nov 14, 2013
1 parent 3e81d52 commit bd83e09
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ Attempt to use Stanford NLP library in Elasticsearch

## How to test ##

### Requirements:
### Requirements
- ES 1.0.0.Beta1

Install plugin:
Change $ES_HOME path in rebuild.bat
Install plugin:
Change $ES_HOME path in rebuild.bat
Execute rebuild.bat

Create new index:
Create new index
```PUT /test-autotagging```

Create new mapping
Expand Down Expand Up @@ -48,9 +48,10 @@ PUT /test-autotagging/attachment/_mapping
Index few documents
```
curl -XPUT localhost:9200/test-autotagging/attachment/1 -d @content-1.json
curl -XPUT localhost:9200/test-autotagging/attachment/2 -d @content-2.json
```

Invoke custom REST action to "auto-tag" the indexed document:
Invoke custom REST action to "auto-tag" the indexed documents:
```
POST /test-autotagging/attachment/1/_autoTagging?t=tags&f=content
```
Expand Down Expand Up @@ -92,6 +93,7 @@ GET test-autotagging/attachment/_search
```

It should also work as custom type but could slow down indexing process as the operation is asynchronous...
Index few documents
```
PUT /test-autotagging/test/1
Expand Down

0 comments on commit bd83e09

Please sign in to comment.