Hello, I'm trying to search on an ID in my index with reservations for a test application.
I can search on the full ID but when I search on the last part of the ID (something the PO requested),
I don't get any results back.
This is the querry I have at the moment for search on the last 6 numbers in the ID:
var test = Repository.ElasticClient.Search<Reservation>(s => s
.From(page * numberofresults)
.Size(numberofresults)
.Query(q => q
.Match(r => r
.Field(f => f.SequenceId.Substring(9))
.Query(IdForSingleSearch))));
LLL-0000-000000
this is the format of the ID
Anyone that knows what could be wrong here?
Thanks in advance
UPDATE:
When I changed the Substring number to 9, I got the last 6 digits.
But my search doesn't find a reservation, and when I look in the cluster it's actually there, anyone any idea why it doesn't find the document?
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.