full-text-search

mysql - any way to help fulltext search with another index?

谁说胖子不能爱 提交于 2020-01-01 05:35:07
问题 Let's say i have an "articles" table which has the columns: article_text: fulltext indexed author_id: indexed now i want to search for a term that appears in an article that a particular arthor has written. so something like: select * from articles where author_id=54 and match (article_text) against ('foo'); the explain for this query tells me that mysql is only going to use the fulltext index. I believe mysql can only use 1 index, but it sure seems like a wise idea to get all the articles a

How to find similar documents

你说的曾经没有我的故事 提交于 2020-01-01 00:45:13
问题 How do you find a similar documents of a given document in Lucene. I do not know what the text is i only know what the document is. Is there a way to find similar documents in lucene. I am a newbie so I may need some hand holding. 回答1: you may want to check the MoreLikeThis feature of lucene. MoreLikeThis constructs a lucene query based on terms within a document to find other similar documents in the index. http://lucene.apache.org/java/3_0_1/api/contrib-queries/org/apache/lucene/search

How to search for text fragments in a database

十年热恋 提交于 2019-12-31 22:41:09
问题 Are there any open source or commercial tools available that allow for text fragment indexing of database contents and can be queried from Java? Background of the question is a large MySQL database table with several hundred thousand records, containing several VARCHAR columns. In these columns people would like to search for fragments of the contents, so a fulltext index (which is based on word boundaries) would not help. EDIT : [Added to make clear why these first suggestions would not

MongoDB fulltext search + workaround for partial word match

丶灬走出姿态 提交于 2019-12-31 17:51:24
问题 Since it is not possible to find "blueberry" by the word "blue" by using a mongodb full text search, I want to help my users to complete the word "blue" to "blueberry". To do so, is it possible to query all the words in a mongodb full text index -> that I can use the words as suggestions i.e. for typeahead.js? 回答1: Language stemming in text search uses an algorithm to try to relate words derived from a common base (eg. "running" should match "run"). This is different from the prefix match (eg

where to edit mysql fulltext stopword lists?

廉价感情. 提交于 2019-12-31 07:16:28
问题 i saw the fulltext stopword lists of mysql is in english. That's a bit weird considering mysql is used all over the world... Anyway i lowered the ft_min_word_len to 3, so i need to add the common words in my language to this lists. Someone can tell me where i can find it? Thanks 回答1: This should work: To override the default stopword list, set the ft_stopword_file system variable. (See Section 5.1.4, “Server System Variables”.) The variable value should be the path name of the file containing

“Query is not understandable” - Full text searching where field types have changed

Deadly 提交于 2019-12-31 05:15:13
问题 A client have a long lived IBM Notes application where someone along the line changed the type of a field from number to text. So, now when we're trying to do an FT search like: [myField] = "1234" receive the error message: "Query is not understandable". If I do: [myField] = 1234 it works but won't return any hits. Even though there's a document where myField = "1234". The field is of type text in the design. I've created a new view for testing, only allowing documents from one form. Deleted

On which OS Search.CollatorDSO is available?

牧云@^-^@ 提交于 2019-12-31 04:57:07
问题 I am trying to search file system using Search.CollatorDSO: Provider=Search.CollatorDSO;Extended Properties="Application=Windows" On what Windows OS is this provider available by default? According to this question it is not installed on Web editions of Windows Server. If it is not installed can it be installed manually? 回答1: After much digging, it appears the only way to get the ole db provider: Search.CollatorDSO is to enable the Search service in windows OS itself. Installing Search Server

mysql fulltext MATCH,AGAINST returning 0 results

匆匆过客 提交于 2019-12-31 03:26:06
问题 I am trying to follow: http://dev.mysql.com/doc/refman/4.1/en/fulltext-natural-language.html in an attempt to improve search queries, both in speed and the ability to order by score. However when using this SQL ("skitt" is used as a search term just so I can try match Skittles). SELECT id,name,description,price,image, MATCH (name,description) AGAINST ('skitt') AS score FROM products WHERE MATCH (name,description) AGAINST ('skitt') it returns 0 results. I am trying to find out why, I think I

How do you search for a & (ampersand) in the tsql contains function?

徘徊边缘 提交于 2019-12-31 02:11:10
问题 I have a table T which has a column C which contains text that have the character & within it, but if I do the following query, it returns nothing, although I may have 10 rows. SELECT * FROM T WHERE Contains(C, 'a&b') 回答1: Use double quotes to make it a search term: SELECT * FROM T WHERE CONTAINS(C, '"a&b"') Otherwise you are searching for something that has a AND b. 回答2: Use like instead: SELECT * FROM T WHERE C like '%&%' if you're looking just for & or SELECT * FROM T WHERE C like '%a&b%'

SQL Server 2008 FullTextSearch Single Character in Name Missing from Results

我只是一个虾纸丫 提交于 2019-12-30 22:53:50
问题 I have a full text indexed column in SQL Server 2008 which has the following rows: W Smithers, Wilda Smithers, W2 Smithers When I run the following query I only get back Wilda Smithers and W2 Smithers. SELECT FT_TBL.full_name as results FROM dbo.ft_table AS FT_TBL WITH (NOLOCK) INNER JOIN CONTAINSTABLE (ft_table , full_name, '("w*" AND "smither*")',12) AS KEY_TBL ON FT_TBL.ft_key_id = KEY_TBL.[KEY] ORDER BY KEY_TBL.RANK desc Any suggestions on how to tweak this so W Smithers is also in my