FoundatioFx / Foundatio.Parsers

A lucene style query parser that is extensible and allows modifying the query.
https://www.nuget.org/packages/Foundatio.Parsers.LuceneQueries/
Apache License 2.0
66 stars 20 forks source link

dynamic mapping instead of typed class mapping #54

Closed galvin1234 closed 4 years ago

galvin1234 commented 4 years ago

Does your solution supports in case of dynamic mapping and dynamic search. Because when i try to search something on dynamic mapping using dynamic type then search executes but it didnt return any hits. Or provide any test case where you are creating dynamic mapping and trying to index dynamic type and search using dynamic.

200 POST http://localhost:9200/testmes/_search?pretty=true&typed_keys=false

something like var actualResponse = client.Search\<dynamic>(d => d.Index(index).Query(q => result)); on dynamic mapping, instead of var actualResponse = client.Search\<MyType>(d => d.Index(index).Query(q => result));

niemyjski commented 4 years ago

It should work, we try and pull back mappings to resolve unknown fields. Can you please create a failing unit test for the behavior you are seeing.

ejsmith commented 4 years ago

@galvin1234 if you are using the current 10.0 beta release then I just found a bug with it that I am looking into.

niemyjski commented 4 years ago

@ejsmith is this resolved in the latest betas?

ejsmith commented 4 years ago

Yes. @galvin1234 let us know if you see any additional issues.