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


(richardsyeo) #1

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

curl -XPUT "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" -d "{"""jobtitle""":"""C++ developer""","""location""":{"""lat""":40.12,"""lon""":-71.34}}"
curl -XPUT "http://localhost:9200/scratch/test/3" -d "{"""jobtitle""":"""VB.Net developer""","""location""":{"""lat""":40.12,"""lon""":-71.34}}"
curl -XPUT "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" -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" -d "{"""query""":{"""term""":{"""jobtitle""":"""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 to vbdotnet
asp.net to aspdotnet


(system) #2