Add option to disable splitOnCommas function #142

Closed
voho opened this Issue Nov 1, 2011 · 3 comments

2 participants

@voho

Please, could you add an option to disable splitOnCommas function to be able to search experssions with commas too? Or add an escape character to override this behaviour? Thank you.

@rnewson
Owner

You can already use commas in expressions if you quote them. e.g, ?q="hello,hello","hello" performs two queries, one for "hello,hello" and one for "hello".

@rnewson
Owner

Though it does depend on your tokenizer. The default one will likely remove the comma in "hello,hello" :)

@voho

Hello, thank you for the reply. We use WhitespaceAnalyzer. The problem is, we allow users to insert the query and he/she uses commas in terms seldomly, e.g. hello,hell* which should find e.g. hello,hello and hello,hellisonearth tokens. Anyway, we are to implement the changed behaviour soon in our fork "mmm444", so anybody who wants this, take a look.

@voho voho closed this Nov 2, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment