Skip to content

Where can I enable index_exact_words on index create? #166

Closed Answered by sanikolaev
d47081 asked this question in Q&A
Discussion options

You must be logged in to vote
# cat test_settings.php
<?php
require_once __DIR__ . '/vendor/autoload.php';

$config = ['host'=>'127.0.0.1','port'=>9308];
$client = new \Manticoresearch\Client($config);
$index = $client->index('t');
$index->drop(true);
$index->create(['a' => ['type' => 'int']], [
'morphology' => 'stem_en',
'bigram_index' => 'all',
'min_infix_len' => 2,
'index_exact_words' => 1,
'expand_keywords' => 1
]);

# php test_settings.php

# mysql -P9306 -h0 -e "show create table t\G"
*************************** 1. row ***************************
       Table: t
Create Table: CREATE TABLE t (
id bigint,
a integer
) min_infix_len='2' index_exact_words='1' bigram_index='all' morphology='stem_en' expand_keywords='1'

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@d47081
Comment options

Answer selected by d47081
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants