# Querying multiple fields and giving a predetermined score to an eventual match

**URL:** <https://discuss.elastic.co/t/querying-multiple-fields-and-giving-a-predetermined-score-to-an-eventual-match/89688>\
**Category:** Elasticsearch\
**Created:** [June 16, 2017, 10:25am UTC](https://discuss.elastic.co/t/querying-multiple-fields-and-giving-a-predetermined-score-to-an-eventual-match/89688 "2017-06-16T10:25:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 16, 2017, 6:08pm UTC](https://discuss.elastic.co/t/querying-multiple-fields-and-giving-a-predetermined-score-to-an-eventual-match/89688/2 "2017-06-16T18:08:24Z")

</div>

Bonjour Arnaud

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

> [@ArnaudA](#):
>
> ES version is 1.4

First, it's super urgent that you upgrade to 2.4 or better to 5.4. 1.x series is EOL'ed.

> [@ArnaudA](#):
>
> The form possess some fields such as name, first-name, place, date of beginning, date of end.

IMO that's a "bad" design. I mean that when you search for someone on Google, you don't have a complicated form to search. Just a box.  
I like the fact that the search engine is built to take care of relevancy and gives the best results first.

Anyway, I know it's sometime hard to get a consensus on that.

I gave a talk (en français) at Paris JUG a year ago IIRC and I ended up showing a demo. The script is here:

> <https://gist.github.com/dadoonet/5179ee72ecbf08f12f53d4bda1b76bab>

Video (in french) is here:

[![](https://us1.discourse-cdn.com/elastic/original/3X/2/f/2fdcbd14d7189092523c5f823d98619c09a8a13b.jpeg "16/08/13 - 03 - ElasticSearch") ](https://www.youtube.com/watch?v=zD5ezETQv0s)

I hope this can help. Feel free also to join our #Discussions en français group if you prefer speaking french.

Best

---

_[View the full topic](https://discuss.elastic.co/t/querying-multiple-fields-and-giving-a-predetermined-score-to-an-eventual-match/89688)._
