i have ravendb document called Orders like this
{
"MyOrders": [
"S1",
"S2"
],
"Id": "6666"
}
I will query this document and pass order string for example S1
Then it should return me that document as S1 matches it. I am pretty new to this ravendb. I am unable to find way. I have written only this so far
public class MyOrderIndexes: AbstractIndexCreationTask<Order>
{
public MyOrderIndexes()
{
Map = Orders => from Order in Orders
select new
{
ID= Order.Id
};
Index(x => x.Id, FieldIndexing.NotAnalyzed);
}
}
can someone help me