Closed chandra9 closed 9 years ago
If I have a document like
{ _index: captora.com _type: contentdiscovery _id: GfUbzwEoTkmnWVO__jzlog _score: 12.953745 _source: { image: http://campaign.com/image1.png subtitle: description: sample description campaign: campaign name title: Title of Campaign assettype: url: http://www.campaign.com } }
and I try a term query with payload like
{ "query": { "term": { "url": "http://www.campaign.com" } }, "from": 0, "size": 9999 }
I get 0 results while the url is exactly as in the document. While a query without http:// in the term returns the document. i.e.
{ "query": { "term": { "url": "www.campaign.com" } }, "from": 0, "size": 9999 }
Forgot to mention, the url field is stored and not analyzed.
Figured out the problem, we had a client side analyzer in the chain. Thanks! I'll use the forum the next time :tongue:
If I have a document like
{ _index: captora.com _type: contentdiscovery _id: GfUbzwEoTkmnWVO__jzlog _score: 12.953745 _source: { image: http://campaign.com/image1.png subtitle: description: sample description campaign: campaign name title: Title of Campaign assettype: url: http://www.campaign.com } }
and I try a term query with payload like
{ "query": { "term": { "url": "http://www.campaign.com" } }, "from": 0, "size": 9999 }
I get 0 results while the url is exactly as in the document. While a query without http:// in the term returns the document. i.e.
{ "query": { "term": { "url": "www.campaign.com" } }, "from": 0, "size": 9999 }