# QueryStringQuery Search with Comma

**URL:** <https://discuss.elastic.co/t/querystringquery-search-with-comma/5108>\
**Category:** Elasticsearch\
**Created:** [August 10, 2011, 9:42am UTC](https://discuss.elastic.co/t/querystringquery-search-with-comma/5108 "2011-08-10T09:42:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davrob](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@davrob](https://discuss.elastic.co/u/davrob)\
**Post date:** [August 10, 2011, 9:42am UTC](https://discuss.elastic.co/t/querystringquery-search-with-comma/5108/1 "2011-08-10T09:42:34Z")

</div>

Hi,

I'm trying to make a query like this:

```
steel* OR (tokenizedCusAttrIdValue:29,steel*) OR

```

(tokenizedCusAttrIdValue:33,steel\*) OR (tokenizedCusAttrIdValue:  
34,steel\*) OR (tokenizedCusAttrIdValue:65000088,steel\*))

In QueryStringQuery, with the default operator set to AND.

It appears that the phrases like this "tokenizedCusAttrIdValue:  
29,steel\*" are not being picked up. The analyser is the default  
analyser, will comma count as a stop word or will it count in the  
query?

Best Regards,

David.

---

<div class="post-metadata">

**Author:** ![Jan\_Fiedler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_fiedler/32/2518_2.png) [@Jan\_Fiedler](https://discuss.elastic.co/u/Jan_Fiedler)\
**Post date:** [August 11, 2011, 6:53am UTC](https://discuss.elastic.co/t/querystringquery-search-with-comma/5108/2 "2011-08-11T06:53:39Z")

</div>

You can take a look at what the analyzer does via the index analyze API.  
This can be accessed via curl like this:

curl -XGET 'localhost:9200//\_analyze?text=29,steel\*'

Running this returns something like:

{  
"tokens" : [ {  
"token" : "29",  
"start\_offset" : 0,  
"end\_offset" : 2,  
"type" : "",  
"position" : 1  
}, {  
"token" : "steel",  
"start\_offset" : 3,  
"end\_offset" : 8,  
"type" : "",  
"position" : 2  
} ]  
}

Which means that your text is analyzed into 2 tokens only (i.e. '29' and  
'steel') by the default analyzer. See  
[http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze.html](http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze.html) for  
more details on the analyzer API.

---

<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, 3:57am UTC](https://discuss.elastic.co/t/querystringquery-search-with-comma/5108/3 "2017-07-06T03:57:31Z")

</div>


