> For the complete documentation index, see [llms.txt](https://help.santesuite.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.santesuite.org/developers/server-plugins/implementing-.net-features/service-definitions/query-result-scoring-provider.md).

# Query Result Scoring Provider

`IQueryScoringService` in assembly SanteDB.Core.Api version 3.0.1980.0

## Summary

Represents a service that can score queries

## Operations

| Operation | Response/Return                     | Input/Parameter                                                                                                            | Description                                                                |
| --------- | ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| Score     | IEnumerable\<IQueryResultScore\<T>> | <p><em>Expression\<Func\<T,Boolean>></em> <strong>filter</strong><br><em>IEnumerable\<T></em> <strong>results</strong></p> | Requests that the matching operation score the specified series of results |

## Implementations

None

## Example Implementation

```csharp
/// Example Implementation
using SanteDB.Core.Services;
/// Other usings here
public class MyQueryScoringService : SanteDB.Core.Services.IQueryScoringService { 
	public String ServiceName => "My own IQueryScoringService service";
	/// <summary>
	/// Requests that the matching operation score the specified series of results
	/// </summary>
	public IEnumerable<IQueryResultScore<T>> Score<T>(Expression<Func<T,Boolean>> filter,IEnumerable<T> results){
		throw new System.NotImplementedException();
	}
}
```

## References

* [IQueryScoringService C# Documentation](http://santesuite.org/assets/doc/net/html/T_SanteDB_Core_Services_IQueryScoringService.htm)
