Message Boards
search for a phrase but without using quotes
search for a phrase but without using quotes
Junior Member Posts: 74 Join Date: 7/28/15 Recent PostsHi,
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.
RE: search for a phrase but without using quotes
Junior Member Posts: 30 Join Date: 9/4/14 Recent PostsHi Gopal,
Try using Indexer Post Processor.
You can refer: https://help.liferay.com/hc/en-us/articles/360018170871-Indexer-Post-Processor
RE: RE: search for a phrase but without using quotes
Junior Member Posts: 74 Join Date: 7/28/15 Recent PostsHello Abdul,
Thanks for your response. Could you give some more hint on how using Indexer-Post-Processor this can be achieved?
Thanks in advance.
RE: search for a phrase but without using quotes
Expert Posts: 291 Join Date: 2/13/13 Recent PostsEDITED: 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.
RE: RE: search for a phrase but without using quotes
Junior Member Posts: 74 Join Date: 7/28/15 Recent PostsHello Russell,
Thanks for your response.
Indeed i am looking for a solution for 7.1 Would really appreciate if you have any pointer.
Thanks
RE: search for a phrase but without using quotes
Junior Member Posts: 74 Join Date: 7/28/15 Recent PostsI am still looking for a solution for this. Any pointer would be of great help.
Thanks
RE: search for a phrase but without using quotes
Junior Member Posts: 74 Join Date: 7/28/15 Recent PostsI am still looking for a solution for this. Any pointer would be of great help.
Thanks