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

Analysis: Pattern Tokenizer #928

Closed
kimchy opened this issue May 12, 2011 · 0 comments
Closed

Analysis: Pattern Tokenizer #928

kimchy opened this issue May 12, 2011 · 0 comments

Comments

@kimchy
Copy link
Member

kimchy commented May 12, 2011

Pattern tokenizer allows to define a tokenizer that uses regex to break text into tokens. The pattern parameter accepts the regex expression (and flags the common ES level regex flags).

It also accepts group (defaults to -1), from teh docs:

group=-1 (the default) is equivalent to "split". In this case, the tokens will be equivalent to the output from (without empty tokens):String#split(java.lang.String)

Using group >= 0 selects the matching group as the token. For example, if you have:

pattern = \'([^\']+)\'
group = 0

input = aaa 'bbb' 'ccc'

the output will be two tokens: 'bbb' and 'ccc' (including the ' marks). With the same input but using group=1, the output would be: bbb and ccc (no ' marks).

@kimchy kimchy closed this as completed in f659ecc May 12, 2011
ofavre pushed a commit to yakaz/elasticsearch that referenced this issue Jul 18, 2011
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
martijnvg pushed a commit to martijnvg/elasticsearch that referenced this issue Jan 31, 2018
…tus (elastic#935)

Add a check for the current state waitForPersistentTaskStatus before waiting for the next one. This fixes sporadic failure in testPersistentActionStatusUpdate test.

Fixes elastic#928
martijnvg pushed a commit that referenced this issue Feb 5, 2018
…tus (#935)

Add a check for the current state waitForPersistentTaskStatus before waiting for the next one. This fixes sporadic failure in testPersistentActionStatusUpdate test.

Fixes #928
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

1 participant