From 5abf461ebb79a1a98d9996b4378e577552f0bf1d Mon Sep 17 00:00:00 2001 From: floriansemm Date: Fri, 21 Apr 2017 10:54:33 +0200 Subject: [PATCH] add hint how to index documents without database --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e0785ed5..4a2145a7 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,10 @@ Any values in `schema`, `host`, `port` and `path` option, will be ignored if you ### Step 4: Configure your entities To make an entity indexed, you must add some annotations to your entity. Basic configuration requires two annotations: -`@Solr\Document()`, `@Solr\Id()`. To index data add `@Solr\Field()` to your properties. +`@Solr\Document()`, `@Solr\Id()`. To index data add `@Solr\Field()` to your properties. + +If you want to index documents without any database, then you have to use the same annotations. Make sure you have set a Id or +set `@Solr\Id(generateId=true)`. ```php // ....