# Searching and indexing of C# C++ .net asp.net doesn't work

**URL:** <https://discuss.elastic.co/t/searching-and-indexing-of-c-c-net-asp-net-doesnt-work/4068>\
**Category:** Elasticsearch\
**Created:** [March 9, 2011, 8:54pm UTC](https://discuss.elastic.co/t/searching-and-indexing-of-c-c-net-asp-net-doesnt-work/4068 "2011-03-09T20:54:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richardsyeo](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@richardsyeo](https://discuss.elastic.co/u/richardsyeo)\
**Post date:** [March 9, 2011, 8:54pm UTC](https://discuss.elastic.co/t/searching-and-indexing-of-c-c-net-asp-net-doesnt-work/4068/1 "2011-03-09T20:54:28Z")

</div>

curl -XPOST "localhost:9200/scratch" -d "{"""mappings""":{"""test""":{"""properties""":{"""jobtitle""":{"""type""":"""string"""},"""location""":{"""type""":"""geo\_point"""}}}}}"

curl -XPUT "[http://localhost:9200/scratch/test/1](http://localhost:9200/scratch/test/1)" -d "{"""jobtitle""":"""C# developer""","""location""":{"""lat""":40.12,"""lon""":-71.34}}"  
curl -XPUT "[http://localhost:9200/scratch/test/2](http://localhost:9200/scratch/test/2)" -d "{"""jobtitle""":"""C++ developer""","""location""":{"""lat""":40.12,"""lon""":-71.34}}"  
curl -XPUT "[http://localhost:9200/scratch/test/3](http://localhost:9200/scratch/test/3)" -d "{"""jobtitle""":"""[VB.Net](http://VB.Net) developer""","""location""":{"""lat""":40.12,"""lon""":-71.34}}"  
curl -XPUT "[http://localhost:9200/scratch/test/4](http://localhost:9200/scratch/test/4)" -d "{"""jobtitle""":""".Net developer""","""location""":{"""lat""":40.12,"""lon""":-71.34}}"

curl -XGET "[http://localhost:9200/scratch/test/\_search?pretty=true](http://localhost:9200/scratch/test/_search?pretty=true)" -d "{"""query""":{"""match\_all""":{}}}"

// Returns record but executing equiv for .net c# and C++ does not  
\gnu\bin\curl\curl -XGET "[http://localhost:9200/scratch/test/\_search?pretty=true](http://localhost:9200/scratch/test/_search?pretty=true)" -d "{"""query""":{"""term""":{"""jobtitle""":"""[vb.net](http://vb.net)"""}}}"

How can I get this to work?

One option is to search and replace before indexing but I am hoping there is a better option.  
C++ to CPlusPlus  
C# to CSharp  
.net to dotnet  
[vb.net](http://vb.net) to vbdotnet  
[asp.net](http://asp.net) to aspdotnet

---

<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, 4:10am UTC](https://discuss.elastic.co/t/searching-and-indexing-of-c-c-net-asp-net-doesnt-work/4068/2 "2017-07-06T04:10:25Z")

</div>


