# Matchs on whole title

**URL:** https://discuss.elastic.co/t/matchs-on-whole-title/19242
**Category:** Elasticsearch
**Created:** [August 13, 2014, 8:24am UTC](https://discuss.elastic.co/t/matchs-on-whole-title/19242 "2014-08-13T08:24:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Thami\_Inaflas\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thami_inaflas_2/32/969_2.png) [@Thami\_Inaflas\_2](https://discuss.elastic.co/u/Thami_Inaflas_2)
#### Post date: [August 13, 2014, 8:24am UTC](https://discuss.elastic.co/t/matchs-on-whole-title/19242/1 "2014-08-13T08:24:19Z")

</div>

Hello,

How to only match documents which whole the title is included in the query,  
for example :

If the list of document titles is : "Elasticsearch server", "Elasticsearch  
experts"  
If the query is : "Configure Elasticsearch Server" only the first one  
should match  
If the query is : "Elasticsearch" No documents should match

Thanks for any help.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [August 13, 2014, 8:34am UTC](https://discuss.elastic.co/t/matchs-on-whole-title/19242/2 "2014-08-13T08:34:35Z")

</div>

I think this should help you: [http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/phrase-matching.html#phrase-matching](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/phrase-matching.html#phrase-matching)

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 13 août 2014 à 10:24:23, Thami Inaflas ([inaflas.thami@gmail.com](mailto:inaflas.thami@gmail.com)) a écrit:

Hello,

How to only match documents which whole the title is included in the query, for example :

If the list of document titles is : "Elasticsearch server", "Elasticsearch experts"  
If the query is : "Configure Elasticsearch Server" only the first one should match  
If the query is : "Elasticsearch" No documents should match

## Thanks for any help.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.53eb231b.6ceaf087.18f0%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53eb231b.6ceaf087.18f0%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Thami\_Inaflas\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thami_inaflas_2/32/969_2.png) [@Thami\_Inaflas\_2](https://discuss.elastic.co/u/Thami_Inaflas_2)
#### Post date: [August 13, 2014, 8:46am UTC](https://discuss.elastic.co/t/matchs-on-whole-title/19242/3 "2014-08-13T08:46:27Z")

</div>

The problem with "phrase-matching" is that the request "Configure  
Elasticsearch Server" won't match the document "Elasticsearch Server",  
because it's based on "AND" operator but the word "Configure" isn't in the  
title.

Le mercredi 13 août 2014 10:34:53 UTC+2, David Pilato a écrit :

> I think this should help you:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/phrase-matching.html#phrase-matching)
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> Le 13 août 2014 à 10:24:23, Thami Inaflas ([inafla...@gmail.com](mailto:inafla...@gmail.com)  
> \<javascript:\>) a écrit:
> 
> Hello,
> 
> How to only match documents which whole the title is included in the  
> query, for example :
> 
> If the list of document titles is : "Elasticsearch server", "Elasticsearch  
> experts"  
> If the query is : "Configure Elasticsearch Server" only the first one  
> should match  
> If the query is : "Elasticsearch" No documents should match
> 
> ## Thanks for any help.
> 
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9a30aae4-c54a-4e3c-84f9-8c735997850d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9a30aae4-c54a-4e3c-84f9-8c735997850d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [August 13, 2014, 9:00am UTC](https://discuss.elastic.co/t/matchs-on-whole-title/19242/4 "2014-08-13T09:00:35Z")

</div>

Did you read the full chapter?

May be the other pages in the same chapter give you more info?  
[http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/slop.html#slop](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/slop.html#slop)  
[http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/proximity-relevance.html](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/proximity-relevance.html)

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 13 août 2014 à 10:46:31, Thami Inaflas ([inaflas.thami@gmail.com](mailto:inaflas.thami@gmail.com)) a écrit:

The problem with "phrase-matching" is that the request "Configure Elasticsearch Server" won't match the document "Elasticsearch Server", because it's based on "AND" operator but the word "Configure" isn't in the title.

Le mercredi 13 août 2014 10:34:53 UTC+2, David Pilato a écrit :  
I think this should help you: [http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/phrase-matching.html#phrase-matching](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/phrase-matching.html#phrase-matching)

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 13 août 2014 à 10:24:23, Thami Inaflas ([inafla...@gmail.com](mailto:inafla...@gmail.com)) a écrit:

Hello,

How to only match documents which whole the title is included in the query, for example :

If the list of document titles is : "Elasticsearch server", "Elasticsearch experts"  
If the query is : "Configure Elasticsearch Server" only the first one should match  
If the query is : "Elasticsearch" No documents should match

## Thanks for any help.

## You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com). For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9a30aae4-c54a-4e3c-84f9-8c735997850d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9a30aae4-c54a-4e3c-84f9-8c735997850d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.53eb2933.3006c83e.18f0%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53eb2933.3006c83e.18f0%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 1:09am UTC](https://discuss.elastic.co/t/matchs-on-whole-title/19242/5 "2017-07-06T01:09:02Z")

</div>


