Hi Gopesh, You are probably grouping on field that is analysed so “Consulting” is group term. What you need to do is to have name field that is not alalysed and group on that field. If you want to “group” on query input, that is not grouping - you simply use phrase query and all results are of that group.
HTH, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > On 25 Jan 2018, at 11:41, Gopesh Sharma <gopesh_sha...@gensler.com> wrote: > > Hello All, > > I am grouping the results but the groups are not happening on the exact > match. For Example : I have 5 documents with name Construction Company, > Construction Tower, Tower Company, Tower House and again Construction > Company. If I search for Construction Company with grouping I am getting > result as > > > * Construction having 3 documents - Construction Company, Construction > Tower and Construction Company with group value construction. > > Is there any way I can get only two results with group value as exact match > of the search item. > > Thanks, > Gopesh Sharma