# Very simple for pro's to help me out here :)

**URL:** <https://discuss.elastic.co/t/very-simple-for-pros-to-help-me-out-here/12606>\
**Category:** Elasticsearch\
**Created:** [July 1, 2013, 5:38pm UTC](https://discuss.elastic.co/t/very-simple-for-pros-to-help-me-out-here/12606 "2013-07-01T17:38:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kailashnath\_Reddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kailashnath_reddy/32/2124_2.png) [@Kailashnath\_Reddy](https://discuss.elastic.co/u/Kailashnath_Reddy)\
**Post date:** [July 1, 2013, 5:38pm UTC](https://discuss.elastic.co/t/very-simple-for-pros-to-help-me-out-here/12606/1 "2013-07-01T17:38:43Z")

</div>

Settings of one of my index:

"settings" : {  
"index" : {  
"analysis" : {  
"char\_filter" : {  
"my\_filter" : {  
"type" : "mapping",  
"mappings" : ["'''=\>", "\_=\>,", "-=\>,"]  
}  
},  
"analyzer" : {  
"my\_standard" : {  
"type": "custom",  
"tokenizer" : "standard",  
"char\_filter" : ["my\_filter"],  
"filter" : ["standard", "lowercase", "stop",  
"word\_delimiter"]  
}  
}  
}  
}  
}

Mapping:

{"search\_type": {  
"properties": {  
"verbose": {"type": "string", "analyzer": "my\_standard"},  
"object\_id": {"type": "long", "index": "no"},  
"type": {"type": "string", "index": "no"},  
"project\_id": {"type": "long"},  
"ts": {"type": "long", "index": "no"},  
"context": {"type": "string", "index": "no"}  
}  
}  
}

Now there is a document with title: Presentation - Process för Projectplace  
i Jira.ppt (uppdaterad 130610).pptx

And now I search for "jira"

The search result doesn't show the above result.  
The query which I use is:  
curl -XGET '[http://xxxx:9200/verbose/items/\_search?pretty=true](http://xxxx:9200/verbose/items/_search?pretty=true)' -d '{  
"query": {  
"filtered": {  
"query" : {  
"query\_string" : {  
"default\_field": "verbose",  
"query": "jira",  
"analyzer": "my\_standard"  
}  
},  
"filter" : {  
"term" : { "project\_id" : 1234 }  
}  
}  
}  
}'

I'm not able to figure out what is the wrong thing I'm doing here :(, any  
help here will save my day!

/Kailash

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [July 2, 2013, 12:40am UTC](https://discuss.elastic.co/t/very-simple-for-pros-to-help-me-out-here/12606/2 "2013-07-02T00:40:55Z")

</div>

Hi Kailash,  
Do you have an example of what you are indexing and the failing query?

I don't see the "title" field in your mappings, could that be the issue?

Thanks,  
Paul

On Monday, July 1, 2013 11:38:43 AM UTC-6, Kailash ź Reddy wrote:

> Settings of one of my index:
> 
> "settings" : {  
> "index" : {  
> "analysis" : {  
> "char\_filter" : {  
> "my\_filter" : {  
> "type" : "mapping",  
> "mappings" : ["'''=\>", "\_=\>,", "-=\>,"]  
> }  
> },  
> "analyzer" : {  
> "my\_standard" : {  
> "type": "custom",  
> "tokenizer" : "standard",  
> "char\_filter" : ["my\_filter"],  
> "filter" : ["standard", "lowercase", "stop",  
> "word\_delimiter"]  
> }  
> }  
> }  
> }  
> }
> 
> Mapping:
> 
> {"search\_type": {  
> "properties": {  
> "verbose": {"type": "string", "analyzer": "my\_standard"},  
> "object\_id": {"type": "long", "index": "no"},  
> "type": {"type": "string", "index": "no"},  
> "project\_id": {"type": "long"},  
> "ts": {"type": "long", "index": "no"},  
> "context": {"type": "string", "index": "no"}  
> }  
> }  
> }
> 
> Now there is a document with title: Presentation - Process för  
> Projectplace i Jira.ppt (uppdaterad 130610).pptx
> 
> And now I search for "jira"
> 
> The search result doesn't show the above result.  
> The query which I use is:  
> curl -XGET '[http://xxxx:9200/verbose/items/\_search?pretty=true](http://xxxx:9200/verbose/items/_search?pretty=true)' -d '{  
> "query": {  
> "filtered": {  
> "query" : {  
> "query\_string" : {  
> "default\_field": "verbose",  
> "query": "jira",  
> "analyzer": "my\_standard"  
> }  
> },  
> "filter" : {  
> "term" : { "project\_id" : 1234 }  
> }  
> }  
> }  
> }'
> 
> I'm not able to figure out what is the wrong thing I'm doing here :(, any  
> help here will save my day!
> 
> /Kailash

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Kailashnath\_Reddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kailashnath_reddy/32/2124_2.png) [@Kailashnath\_Reddy](https://discuss.elastic.co/u/Kailashnath_Reddy)\
**Post date:** [July 2, 2013, 2:46am UTC](https://discuss.elastic.co/t/very-simple-for-pros-to-help-me-out-here/12606/3 "2013-07-02T02:46:06Z")

</div>

Hi Paul,  
The data that I'm indexing is run through a nodejs script which  
indexes document of structure:

{"\_id: "59d434se999ab",  
"object\_id": "2343\_document\_2434",  
"type": "document",  
"project\_id": 4566,  
"verbose": "Presentation - Process för Projectplace i Jira.ppt (uppdaterad  
130610).pptx",  
"\_source": {........}}

Now the analyzer is run only on "verbose" which splits it into tokens.

Then I run the below query to fetch results:

curl -XGET '[http://pp-feedsdb-1:9200/verbose/items/\_search?pretty=true](http://pp-feedsdb-1:9200/verbose/items/_search?pretty=true)' -d  
'{  
"query": {  
"filtered": {  
"query" : {  
"query\_string" : {  
"default\_field": "verbose",  
"query": "jira",  
"analyzer": "my\_standard"  
}  
},  
"filter" : {  
"term" : { "project\_id" : 4566 }  
}  
}  
}  
}'

The result doesn't show the entry "Presentation - Process för Projectplace  
i Jira.ppt (uppdaterad 130610).pptx" but if I search for "jira.ppt" it does  
show.  
I'm guessing if the tokenizer is wrongly configured or not working in my  
setup.  
The settings of the index which I'm using are:

curl -XGET '[http://pp-feedsdb-1:9200/verbose/\_settings?pretty=true](http://pp-feedsdb-1:9200/verbose/_settings?pretty=true) =\>

{  
"verbose" : {  
"settings" : {  
"index.number\_of\_shards" : "5",  
"index.number\_of\_replicas" : "1",  
"index.version.created" : "900099",  
"index.analysis.char\_filter.my\_filter.mappings.1" : "\_=\>,",  
"index.analysis.char\_filter.my\_filter.mappings.0" : "'=\>",  
"index.analysis.analyzer.my\_standard.filter.3" : "word\_delimiter",  
"index.analysis.analyzer.my\_standard.type" : "custom",  
"index.analysis.char\_filter.my\_filter.type" : "mapping",  
"index.analysis.analyzer.my\_standard.tokenizer" : "standard",  
"index.analysis.char\_filter.my\_filter.mappings.2" : "-=\>,",  
"index.analysis.analyzer.my\_standard.filter.2" : "stop",  
"index.analysis.analyzer.my\_standard.filter.1" : "lowercase",  
"index.analysis.analyzer.my\_standard.char\_filter.0" : "my\_filter",  
"index.analysis.analyzer.my\_standard.filter.0" : "standard"  
}  
}  
}

Kindly let me know if you need more details 🙂

Thanks  
K

On Tuesday, July 2, 2013 6:10:55 AM UTC+5:30, ppearcy wrote:

> Hi Kailash,  
> Do you have an example of what you are indexing and the failing query?
> 
> I don't see the "title" field in your mappings, could that be the issue?
> 
> Thanks,  
> Paul
> 
> On Monday, July 1, 2013 11:38:43 AM UTC-6, Kailash ź Reddy wrote:
> 
> > Settings of one of my index:
> > 
> > "settings" : {  
> > "index" : {  
> > "analysis" : {  
> > "char\_filter" : {  
> > "my\_filter" : {  
> > "type" : "mapping",  
> > "mappings" : ["'''=\>", "\_=\>,", "-=\>,"]  
> > }  
> > },  
> > "analyzer" : {  
> > "my\_standard" : {  
> > "type": "custom",  
> > "tokenizer" : "standard",  
> > "char\_filter" : ["my\_filter"],  
> > "filter" : ["standard", "lowercase", "stop",  
> > "word\_delimiter"]  
> > }  
> > }  
> > }  
> > }  
> > }
> > 
> > Mapping:
> > 
> > {"search\_type": {  
> > "properties": {  
> > "verbose": {"type": "string", "analyzer": "my\_standard"},  
> > "object\_id": {"type": "long", "index": "no"},  
> > "type": {"type": "string", "index": "no"},  
> > "project\_id": {"type": "long"},  
> > "ts": {"type": "long", "index": "no"},  
> > "context": {"type": "string", "index": "no"}  
> > }  
> > }  
> > }
> > 
> > Now there is a document with title: Presentation - Process för  
> > Projectplace i Jira.ppt (uppdaterad 130610).pptx
> > 
> > And now I search for "jira"
> > 
> > The search result doesn't show the above result.  
> > The query which I use is:  
> > curl -XGET '[http://xxxx:9200/verbose/items/\_search?pretty=true](http://xxxx:9200/verbose/items/_search?pretty=true)' -d '{  
> > "query": {  
> > "filtered": {  
> > "query" : {  
> > "query\_string" : {  
> > "default\_field": "verbose",  
> > "query": "jira",  
> > "analyzer": "my\_standard"  
> > }  
> > },  
> > "filter" : {  
> > "term" : { "project\_id" : 1234 }  
> > }  
> > }  
> > }  
> > }'
> > 
> > I'm not able to figure out what is the wrong thing I'm doing here :(, any  
> > help here will save my day!
> > 
> > /Kailash

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Kailashnath\_Reddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kailashnath_reddy/32/2124_2.png) [@Kailashnath\_Reddy](https://discuss.elastic.co/u/Kailashnath_Reddy)\
**Post date:** [July 2, 2013, 6:52am UTC](https://discuss.elastic.co/t/very-simple-for-pros-to-help-me-out-here/12606/4 "2013-07-02T06:52:58Z")

</div>

Please ignore this, it's my utter foolishness with logic in my code!  
Adding "from" and "size" made sure that all the results are there.

Thanks and sorry for your time Paul.

/K

On Monday, July 1, 2013 11:08:43 PM UTC+5:30, Kailash ź Reddy wrote:

> Settings of one of my index:
> 
> "settings" : {  
> "index" : {  
> "analysis" : {  
> "char\_filter" : {  
> "my\_filter" : {  
> "type" : "mapping",  
> "mappings" : ["'''=\>", "\_=\>,", "-=\>,"]  
> }  
> },  
> "analyzer" : {  
> "my\_standard" : {  
> "type": "custom",  
> "tokenizer" : "standard",  
> "char\_filter" : ["my\_filter"],  
> "filter" : ["standard", "lowercase", "stop",  
> "word\_delimiter"]  
> }  
> }  
> }  
> }  
> }
> 
> Mapping:
> 
> {"search\_type": {  
> "properties": {  
> "verbose": {"type": "string", "analyzer": "my\_standard"},  
> "object\_id": {"type": "long", "index": "no"},  
> "type": {"type": "string", "index": "no"},  
> "project\_id": {"type": "long"},  
> "ts": {"type": "long", "index": "no"},  
> "context": {"type": "string", "index": "no"}  
> }  
> }  
> }
> 
> Now there is a document with title: Presentation - Process för  
> Projectplace i Jira.ppt (uppdaterad 130610).pptx
> 
> And now I search for "jira"
> 
> The search result doesn't show the above result.  
> The query which I use is:  
> curl -XGET '[http://xxxx:9200/verbose/items/\_search?pretty=true](http://xxxx:9200/verbose/items/_search?pretty=true)' -d '{  
> "query": {  
> "filtered": {  
> "query" : {  
> "query\_string" : {  
> "default\_field": "verbose",  
> "query": "jira",  
> "analyzer": "my\_standard"  
> }  
> },  
> "filter" : {  
> "term" : { "project\_id" : 1234 }  
> }  
> }  
> }  
> }'
> 
> I'm not able to figure out what is the wrong thing I'm doing here :(, any  
> help here will save my day!
> 
> /Kailash

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [July 2, 2013, 10:39pm UTC](https://discuss.elastic.co/t/very-simple-for-pros-to-help-me-out-here/12606/5 "2013-07-02T22:39:05Z")

</div>

Hehe, no worries. Glad you figured it out.

On Tuesday, July 2, 2013 12:52:58 AM UTC-6, Kailash ź Reddy wrote:

> Please ignore this, it's my utter foolishness with logic in my code!  
> Adding "from" and "size" made sure that all the results are there.
> 
> Thanks and sorry for your time Paul.
> 
> /K
> 
> On Monday, July 1, 2013 11:08:43 PM UTC+5:30, Kailash ź Reddy wrote:
> 
> > Settings of one of my index:
> > 
> > "settings" : {  
> > "index" : {  
> > "analysis" : {  
> > "char\_filter" : {  
> > "my\_filter" : {  
> > "type" : "mapping",  
> > "mappings" : ["'''=\>", "\_=\>,", "-=\>,"]  
> > }  
> > },  
> > "analyzer" : {  
> > "my\_standard" : {  
> > "type": "custom",  
> > "tokenizer" : "standard",  
> > "char\_filter" : ["my\_filter"],  
> > "filter" : ["standard", "lowercase", "stop",  
> > "word\_delimiter"]  
> > }  
> > }  
> > }  
> > }  
> > }
> > 
> > Mapping:
> > 
> > {"search\_type": {  
> > "properties": {  
> > "verbose": {"type": "string", "analyzer": "my\_standard"},  
> > "object\_id": {"type": "long", "index": "no"},  
> > "type": {"type": "string", "index": "no"},  
> > "project\_id": {"type": "long"},  
> > "ts": {"type": "long", "index": "no"},  
> > "context": {"type": "string", "index": "no"}  
> > }  
> > }  
> > }
> > 
> > Now there is a document with title: Presentation - Process för  
> > Projectplace i Jira.ppt (uppdaterad 130610).pptx
> > 
> > And now I search for "jira"
> > 
> > The search result doesn't show the above result.  
> > The query which I use is:  
> > curl -XGET '[http://xxxx:9200/verbose/items/\_search?pretty=true](http://xxxx:9200/verbose/items/_search?pretty=true)' -d '{  
> > "query": {  
> > "filtered": {  
> > "query" : {  
> > "query\_string" : {  
> > "default\_field": "verbose",  
> > "query": "jira",  
> > "analyzer": "my\_standard"  
> > }  
> > },  
> > "filter" : {  
> > "term" : { "project\_id" : 1234 }  
> > }  
> > }  
> > }  
> > }'
> > 
> > I'm not able to figure out what is the wrong thing I'm doing here :(, any  
> > help here will save my day!
> > 
> > /Kailash

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:28am UTC](https://discuss.elastic.co/t/very-simple-for-pros-to-help-me-out-here/12606/6 "2017-07-06T02:28:33Z")

</div>

Closed on July 6, 2017, 2:28am UTC


