// 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
String properties are analyzed by default. Term queries are not
analyzed, so you are searching on a analyzed field with a non-analyzed
term. You can either set the mapping to non_analyzed or use a field
query/query string.
// 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
but my searches above still do not work. Interestingly the vb.net one
above no longer works either.
Converting to the following isn't desirable as I want to do keyword
highlighting.
C++ to CPlusPlus
C# to CSharp
.net to dotnet vb.net to vbdotnet asp.net to aspdotnet
Any further thoughts for a novice would be appreciated.
String properties are analyzed by default. Term queries are not
analyzed, so you are searching on a analyzed field with a non-analyzed
term. You can either set the mapping to non_analyzed or use a field
query/query string.
// 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
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.