We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi aleks i want use your extension i want indexing whene user click in search buttom i use below code in web.php in config folder
'search' => [ 'class' => 'sadovojav\search\components\SearchLucene', 'indexDirectory' => '@console/runtime/search', 'models' => [ [ 'dataProviderOptions' => [ 'query' => common\modules\news\models\News::find() ->localized('en') ->active() ], 'attributes' => [ 'lang' => 'en', // Custom fild to search 'name' => [ 'name' => SearchLucene::FIELD_TEXT ], 'text_intro' => [ 'text_intro' => SearchLucene::FIELD_UN_STORED ], 'text_full' => [ 'text_full' => SearchLucene::FIELD_UN_STORED ], ], ] ] ],
whene run app display error " Class 'common\modules\news\models\News' not found" even whene use "Class 'app\models\Product' not found".
The text was updated successfully, but these errors were encountered:
This is for example: 'common\modules\news\models\News' You must use your Class for search. Check Product class in models directory
Sorry, something went wrong.
tanks aleks my product model work other page my product class ` namespace app\models; class Product extends \yii\db\ActiveRecord { }
` notice: whene use elasticsearch it gives same error and i dont know
No branches or pull requests
hi aleks
i want use your extension
i want indexing whene user click in search buttom
i use below code in web.php in config folder
'search' => [ 'class' => 'sadovojav\search\components\SearchLucene', 'indexDirectory' => '@console/runtime/search', 'models' => [ [ 'dataProviderOptions' => [ 'query' => common\modules\news\models\News::find() ->localized('en') ->active() ], 'attributes' => [ 'lang' => 'en', // Custom fild to search 'name' => [ 'name' => SearchLucene::FIELD_TEXT ], 'text_intro' => [ 'text_intro' => SearchLucene::FIELD_UN_STORED ], 'text_full' => [ 'text_full' => SearchLucene::FIELD_UN_STORED ], ], ] ] ],
whene run app display error " Class 'common\modules\news\models\News' not found"
even whene use "Class 'app\models\Product' not found".
The text was updated successfully, but these errors were encountered: