Skip to content

Commit f452308

Browse files
committed
Update readme.md.
1 parent 428f55f commit f452308

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ This package makes it easy to use native PostgreSQL Full Text Search capabilitie
1111

1212
- [Installation](#installation)
1313
- [Configuration](#configuration)
14+
- [Configuring PostgreSQL](#configuring-postgresql)
15+
- [Prepare the schema](#prepare-the-schema)
16+
- [Configuring Searchable Data](#configuring-searchable-data)
17+
- [Configuring the Model](#configuring-the-model)
1418
- [Usage](#usage)
15-
- [Changelog](#changelog)
1619
- [Testing](#testing)
1720
- [Security](#security)
21+
- [Changelog](#changelog)
1822
- [Contributing](#contributing)
1923
- [Credits](#credits)
2024
- [License](#license)
@@ -65,9 +69,6 @@ SHOW default_text_search_config;
6569

6670
```
6771

68-
69-
70-
7172
### Prepare the schema
7273

7374
By default the engine expects that parsed documents (model data) are stored in the same table as the Model in a column `searchable` of type `tsvector`. You'd need to create this column and an index in your schema. You can choose between `GIN` and `GiST` indexes in PostgreSQL.
@@ -172,6 +173,12 @@ public function searchableAdditionalArray()
172173
];
173174
}
174175
```
176+
You may want to make your searchable column hidden so it's not standing in your way
177+
```php
178+
protected $hidden = [
179+
'searchable',
180+
];
181+
```
175182

176183
## Usage
177184

0 commit comments

Comments
 (0)