full-text-search

Postgres ts_vector

为君一笑 提交于 2020-02-08 07:26:04
问题 I am using Seqeulize with Nodejs. My table name is "Users" and it has a column "userName". I have named the ts vectored column userNameVector. In trying to create the column and set the triggers, I keep getting the error "errorMissingColumn". Apparently it is telling me that my column "userName" doesn't exist but I triple checked and it does. The log from the node console is as follows: Executing (default): ALTER TABLE "Users" ADD COLUMN "userNameVector" TSVECTOR Executing (default): UPDATE

Allocate more resources for Full-Text search index population service

断了今生、忘了曾经 提交于 2020-02-06 09:59:28
问题 We have a table with Full Text Search index enabled. And Change tracking is set to 'Automatic' The problem we have is that we generate content for this table faster than indexing is happening for Full Text Search index (we have one very large string column and it takes a lot of time to index it) So the question is if there is a way to allocate more resources to the service responsible for full text search index population. (There is a 'SQL Full Text host' service and I assume it responsible

Case insensitive Solr query for facets but preserve case for results

我与影子孤独终老i 提交于 2020-02-05 08:57:13
问题 I am using Solr to power faceting features for our e-commerce application. Its been implemented in standard way as described here https://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters On application side, we have used facets returned by Solr to offer filtering experience on UI and the URLs are built using the facets as params. These parameters are then used to further pass on the faceting parameters for fq into Solr. This works great except that our URLs are case

Elasticsearch: shingles with stop words elimination

泄露秘密 提交于 2020-02-02 04:16:53
问题 I am trying to implement an elasticsearch mapping to optimize phrase search in a large body of text. As per the suggestions in this article, I am using a shingle filter to build multiple unigrams per phrase. Two questions: In the article mentioned, the stopwords are filtered and the shingles take care of the missing spaces by inserting "_" tokens. These tokens should be eliminated from the unigram that is indexed by the engine. The point of this elimination is be able to respond to phrase

Elasticsearch: shingles with stop words elimination

喜你入骨 提交于 2020-02-02 04:16:48
问题 I am trying to implement an elasticsearch mapping to optimize phrase search in a large body of text. As per the suggestions in this article, I am using a shingle filter to build multiple unigrams per phrase. Two questions: In the article mentioned, the stopwords are filtered and the shingles take care of the missing spaces by inserting "_" tokens. These tokens should be eliminated from the unigram that is indexed by the engine. The point of this elimination is be able to respond to phrase

SQL plural/singular searches

爱⌒轻易说出口 提交于 2020-01-27 08:39:05
问题 How can I make plural/singular words pull all forms? Example: If a person searches for "mens rings" how can I check the data base to see if any of the fields contain mens, men, men's, ring, rings, etc.? 回答1: It dosn't seem that using LIKE would be the best approach for what you need. I would look into MySQL FULLTEXT indexing to get the basic functionality working. I'll have to look into the plural thing a bit more to see if that can be accomplished. Take a look at these two links for FULLTEXT

Searching for specific words in a text string - SQL [closed]

百般思念 提交于 2020-01-25 07:59:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed yesterday . I wondered if someone might be able to help me. I know that I am doing something wrong and over-complicating this but i'm not sure what. I would like to pick out text from questions 205,227 and 278 when someone uses the words Autism, ASD, Aspergers etc... to answer the question. What is happening is I am only

MySQL fts index degrading performance until OPTIMIZE TABLE

て烟熏妆下的殇ゞ 提交于 2020-01-25 06:13:56
问题 It seems that when updating a mysql fulltext index, the query performance degrades over time -- perhaps about two months of updates, there a noticeable query degradation on a query such as: WHERE match(search) against ('Season1') Is this a common experience? I've never heard of this before. Is it possible to 'rebuild' the fts index or something if it seems like the performance is degrading? However, after running OPTIMIZE TABLE every month or so, it seems to fix the problem. What's going on

Remove diacritics at index time into Solr

核能气质少年 提交于 2020-01-25 05:55:17
问题 I am working on a Solr search fine tuning. I'm using Solr 4.0. Normally, I worked with language analyzers and tokenizers for English language, however this time I'm working with Portuguese language and I'm facing issue as it doesn't really give the expected result I need. For example: I'm searching for word 'proteses' but what is indexed is 'próteses' which is with diacritics. So it gives wrong results! What I need to do is remove all diacritics before indexing and search, so it gives correct

mysql Modify stopword list for fulltext search

旧巷老猫 提交于 2020-01-24 10:16:25
问题 I've searched a lot, it's said that I have to edit my.cnf file to change the stopword list. I renamed my-medium.cnf to my.cnf and added the ft_query_expansion_limit and ft_stopword_file conditions. I have restarted mySQL. But it is not taking effect. I dont have admin privileges. # The MySQL server [mysqld] port = 3306 socket = /tmp/mysql.sock skip-external-locking key_buffer_size = 16M max_allowed_packet = 1M table_open_cache = 64 sort_buffer_size = 512K net_buffer_length = 8K read_buffer