2023-03-04 13:00:46 +00:00
# Index Service
2023-10-27 10:45:39 +00:00
The index service is a partitioned service that knows which document contains which keywords.
2023-03-04 13:00:46 +00:00
2023-03-25 15:32:10 +00:00

2023-03-22 16:01:34 +00:00
2023-03-04 13:00:46 +00:00
## Central Classes
* [IndexService ](src/main/java/nu/marginalia/index/IndexService.java ) is the REST entry point that the internal API talks to.
* [IndexQueryService ](src/main/java/nu/marginalia/index/svc/IndexQueryService.java ) executes queries.
* [SearchIndex ](src/main/java/nu/marginalia/index/index/SearchIndex.java ) owns the state of the index and helps with building a query strategy from parameters.
2023-03-05 18:16:08 +00:00
* [IndexResultValuator ](src/main/java/nu/marginalia/index/results/IndexResultValuator.java ) determines the best results.
## See Also
2023-03-12 09:50:31 +00:00
The index service relies heavily on the primitives in [features-index ](../../features-index ):
* [features-index/index-forward ](../../features-index/index-forward/ )
* [features-index/index-reverse ](../../features-index/index-reverse/ )
2023-03-22 16:01:34 +00:00
* [features-index/index-query ](../../features-index/index-query )