Comments (4)
Hi @develorem,
you are looking for SortOptions.Field("field", new FieldSort { ... })
, I think. Please let me know, if that answers your question.
PS: The lack of documentation is a known issue and it's on my roadmap with a high priority.
from elasticsearch-net.
Hi @flobernd, I cannot instantiate FieldSort, it is sealed.
from elasticsearch-net.
Hi @develorem, FieldSort
is a public
class with a default (parameterless) constructor. The sealed
keyword prevents you from deriving from that class, but should not prevent you from creating an instance of it.
from elasticsearch-net.
Ah sorry, yep. Intellisense wasn't working for the class. I can instantiate it.
But I do hit this problem a lot since there is almost no examples of using the API this way (or for filters, or more complex query scenarios).
from elasticsearch-net.
Related Issues (20)
- QueryStringQuery fails when a single field is set for the Fields array HOT 1
- Nested ordering ignoring filter results
- Remove netcoreapp3.1 and net5.0 from TargetFrameworks and add net8.0 HOT 1
- Use Pull Request Labeler HOT 1
- Empty should collection is serialized improperly
- Support bucket_script HOT 1
- Bulk data failure HOT 2
- Unable to setup default similarity or more similarities with different name. HOT 2
- BoolQuery Must, Must-Not and Should type is not consistent HOT 4
- Client does not support calling App Engine ElastiSearch _search api HOT 8
- How to do BulkUpdates on a property in version 8.x? HOT 4
- Provide a typesafe and fluent way to return only a subset of data and to use script_fields HOT 7
- Custom SourceSerializer options not effective for response data HOT 3
- MultiSearch with multiple document types HOT 1
- Missing implicit operator for range queries HOT 1
- Discrepancy between Query types in Fields property HOT 1
- Exists property is missing from ExistsResponse and ExistsAliasResponse HOT 5
- Elastic.Transport.UnexpectedTransportException with Ingest.GetPipelineAsync HOT 3
- [BUG] RangeQuery API broken after upgrade from 8.12.1 to 8.13.1 HOT 6
- Total field is not filled anymore on the SearchResponse class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-net.