Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Fixes #2 - Readme Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminhirsch committed Jan 14, 2017
1 parent a7cea47 commit c450245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ At first you have to create a index `B3N\Azure\Search\Index` in which you have t

```php
$index = new B3N\Azure\Search\Index('name of your index');
$index->addField(new B3N\Azure\Search\Field('field name 1', B3N\Azure\Search\Field::TYPE_STRING, true))
->addField(new B3N\Azure\Search\Field('field name 2', B3N\Azure\Search\Field::TYPE_STRING))
$index->addField(new B3N\Azure\Search\Index\Field('field name 1', B3N\Azure\Search\Index\Field::TYPE_STRING, true))
->addField(new B3N\Azure\Search\Index\Field('field name 2', B3N\Azure\Search\Index\Field::TYPE_STRING))
->addSuggesters(new B3N\Azure\Search\Index\Suggest('livesearch', ['field name(s)']));

$this->azuresearch->createIndex($index);
Expand Down

0 comments on commit c450245

Please sign in to comment.