Re: How to handle line breaks for quoted queries

2015-07-30 Thread Alessandro Benedetti
Hi Mohsen, this is the perfect place for the *positionIncrementGap *attribute for your field type*.* First of all when phrase or positional searches are necessary you need to store term positions in your index. The position increment gap will increment the position when a multi valued field happ

How to handle line breaks for quoted queries

2015-07-30 Thread Mohsen Saboorian
How can I recognize line breaks and do not allow matching of a quoted query in the following example. I have two documents with just one text field: 1. AAA BBB CCC DDD 2. BBB CCC DDD AAA User enters query "BBB CCC". How can I configure tokenizers so that Solr only returns doc #2? Thanks, Mohs