Skip to content

Commit

Permalink
add hint how to index documents without database
Browse files Browse the repository at this point in the history
  • Loading branch information
floriansemm committed Apr 21, 2017
1 parent 7f348d1 commit 5abf461
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
// ....
Expand Down

0 comments on commit 5abf461

Please sign in to comment.