zhan-huang / js-solr-highlighter

A JavaScript library for highlighting text based on the query in the lucene/solr query syntax
MIT License
2 stars 0 forks source link

Support of `*` wildcard at the start and also at start and end #3

Open Raul52 opened 1 year ago

Raul52 commented 1 year ago

Hello Zhan,

This is a follow-up of the issue https://github.com/zhan-huang/js-solr-highlighter/issues/2. The release of 0.8.8 was highly appreciated and we would kindly ask you if it is possible to further extend the * wildcard support that will satisfy the following conditions:

Is this a possibility?

zhan-huang commented 1 year ago

I got it. I think they should not be difficult. I will come back to you in several days.

Raul52 commented 1 year ago

@zhan-huang can you please also make the * wildcard compatible with the case-sensitive flag provided via the options object?

We checked and concluded that with caseSensitive=false then var query = 'Cance*' and var query = 'cance*' do not return the same results.