# How to define two word in spacing

**URL:** <https://discuss.elastic.co/t/how-to-define-two-word-in-spacing/85323>\
**Category:** Elasticsearch\
**Created:** [May 11, 2017, 3:48am UTC](https://discuss.elastic.co/t/how-to-define-two-word-in-spacing/85323 "2017-05-11T03:48:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharon\_wsf](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@Sharon\_wsf](https://discuss.elastic.co/u/Sharon_wsf)\
**Post date:** [May 11, 2017, 3:48am UTC](https://discuss.elastic.co/t/how-to-define-two-word-in-spacing/85323/1 "2017-05-11T03:48:27Z")

</div>

Hi team,

below is my code:

```
"query": {  
      "constant_score" : {
           "filter" : {
            "bool": {
                "must": [
              {
                 "terms": {"stkno" : ["Net Asset","asset combine"]}}, 
     { "range": { "CDate": { "gte": "2015-01-01" , "lte": "2017-06-03T23:59:59" } } } ]
           
        }}}}

```

Please kindly advice if my word is : Net Asset and Asset combine, use in Must condition,  
if "Asset combine" not in the elasticsearch and "New Asset" in the elasticsearch, using Must condition so all indices can't search?

how to do i want find the word if ones of them inside elasticsearch?  
Cause it can't find "Net Asset" exactly word when i use should condition.

Thanks

---

<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:** [June 8, 2017, 3:52am UTC](https://discuss.elastic.co/t/how-to-define-two-word-in-spacing/85323/2 "2017-06-08T03:52:52Z")

</div>

Closed on June 8, 2017, 3:52am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
