medic / lucene-query-generator

Generate escaped lucene query strings
Apache License 2.0
16 stars 7 forks source link

added support for partial search #7

Closed parthgandhi7 closed 8 years ago

parthgandhi7 commented 8 years ago

In the schema field now you can use {name: { type: 'string', allowSpecialCharacters: true }} for bypassing the formatting of 'name: che*' operand (for partial search). Check the test for reference.

parthgandhi7 commented 8 years ago

I have made this PR as per my understanding of your comment https://github.com/medic/lucene-query-generator/pull/6#issuecomment-222010933. Notify me of any further changes you want. In my opinion the previous PR was simpler to implement. Notify me when this is implemented and please provide a documentation for the feature to use.

garethbowen commented 8 years ago

@parthgandhi7 I've merged this change, updated the documentation, and published v0.2.0 to npm. Thanks!