Tag and note index shall remain plain type for now

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2022-08-27 19:42:49 +02:00
parent cedc4bde95
commit 5d4bd88ebb

View File

@ -77,27 +77,6 @@ source dailydelta : base
sql_query = SELECT <?php print SELECT_FIELDS; ?> FROM sph_index WHERE id=-1 sql_query = SELECT <?php print SELECT_FIELDS; ?> FROM sph_index WHERE id=-1
} }
source tag : base
{
sql_query_pre = SET NAMES utf8mb4
sql_query = SELECT `_id`, `id` AS iid, `uid`, `tag` FROM `tag`
sql_attr_uint = iid
sql_attr_uint = uid
}
source note : base
{
sql_query_pre = SET NAMES utf8mb4
sql_query = SELECT `_id`, `id` AS iid, `uid`, `note` FROM `note`
sql_attr_uint = iid
sql_attr_uint = uid
}
index main1 index main1
{ {
source = main1 source = main1
@ -159,28 +138,6 @@ index delta1
} }
index tag1
{
source = tag
path = <?php print LOCALSTATEDIR; ?>/piler/manticore/tag1
min_prefix_len = 5
min_word_len = 1
charset_table = <?php print CHARSET_TABLE; ?>
<?php print NGRAM_CONFIG; ?>
}
index note1
{
source = note
path = <?php print LOCALSTATEDIR; ?>/piler/manticore/note1
min_prefix_len = 5
min_word_len = 1
charset_table = <?php print CHARSET_TABLE; ?>
<?php print NGRAM_CONFIG; ?>
}
<?php } else { ?> <?php } else { ?>
index piler1 index piler1
@ -203,32 +160,48 @@ index piler1
rt_attr_uint = attachments rt_attr_uint = attachments
} }
<?php } ?>
index note1 source tag : base
{ {
type = rt sql_query_pre = SET NAMES utf8mb4
rt_mem_limit = 8M sql_query = SELECT `_id`, `id` AS iid, `uid`, `tag` FROM `tag`
sql_attr_uint = iid
sql_attr_uint = uid
}
source note : base
{
sql_query_pre = SET NAMES utf8mb4
sql_query = SELECT `_id`, `id` AS iid, `uid`, `note` FROM `note`
sql_attr_uint = iid
sql_attr_uint = uid
path = /var/piler/manticore/note1
rt_field = note
stored_fields = note
rt_attr_bigint = iid
rt_attr_uint = uid
} }
index tag1 index tag1
{ {
type = rt source = tag
rt_mem_limit = 8M path = <?php print LOCALSTATEDIR; ?>/piler/manticore/tag1
min_prefix_len = 5
path = /var/piler/manticore/tag1 min_word_len = 1
rt_field = tag charset_table = <?php print CHARSET_TABLE; ?>
stored_fields = tag <?php print NGRAM_CONFIG; ?>
rt_attr_bigint = iid
rt_attr_uint = uid
} }
<?php } ?>
index note1
{
source = note
path = <?php print LOCALSTATEDIR; ?>/piler/manticore/note1
min_prefix_len = 5
min_word_len = 1
charset_table = <?php print CHARSET_TABLE; ?>
<?php print NGRAM_CONFIG; ?>
}
indexer indexer