Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
search for a phrase but without using quotes
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.
Hi Gopal,
Try using Indexer Post Processor.
You can refer: https://help.liferay.com/hc/en-us/articles/360018170871-Indexer-Post-Processor
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.
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.
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
I am still looking for a solution for this. Any pointer would be of great help.
Thanks
I am still looking for a solution for this. Any pointer would be of great help.
Thanks
Powered by Liferay™