search for a phrase but without using quotes

Gopal Satapathy, modified 3 Years ago. Junior Member Posts: 74 Join Date: 7/28/15 Recent Posts

Hi,

Using DXP 7.1 with elastic search.

I need to search for exact matches of a phrase but without using quotes from the search bar. Any pointer on how to achieve this?

 

Thanks in advance.

 

 

Abdul Kareem, modified 3 Years ago. Junior Member Posts: 30 Join Date: 9/4/14 Recent Posts

Hi Gopal,

Try using Indexer Post Processor. 

You can refer: https://help.liferay.com/hc/en-us/articles/360018170871-Indexer-Post-Processor

 

Gopal Satapathy, modified 3 Years ago. Junior Member Posts: 74 Join Date: 7/28/15 Recent Posts

Hello Abdul,

 

Thanks for your response. Could you give some more hint on how using Indexer-Post-Processor this can be achieved?

 

Thanks in advance.

thumbnail
Russell Bohl, modified 3 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

EDITED: Sorry, my answer below only applies to 7.2+

I would experiment with the Custom Filter widget. See some documented examples for inspiration.

An example I just tested was to configure the custom filter like this:

Filter Field: title_en_US
Filter Value: [leave blank]
Filter Query Type: Match Phrase
Occur: must
Custom Parameter Name: q
 

With Blogs Entries, it matched my keyword search "test blogs" to a document with the title_en_US field value "test blogs entry", but not one with "test blogazoid".

There are a bunch of things you could try, depending on your exact use case. Lots of iterating should reveal interesting ideas.

Gopal Satapathy, modified 3 Years ago. Junior Member Posts: 74 Join Date: 7/28/15 Recent Posts

Hello Russell,

 

Thanks for your response.

Indeed i am looking for a solution for 7.1 Would really appreciate if you have any pointer.

 

Thanks

Gopal Satapathy, modified 3 Years ago. Junior Member Posts: 74 Join Date: 7/28/15 Recent Posts

I am still looking for a solution for this. Any pointer would be of great help.

Thanks

Gopal Satapathy, modified 3 Years ago. Junior Member Posts: 74 Join Date: 7/28/15 Recent Posts

I am still looking for a solution for this. Any pointer would be of great help.

Thanks