full-text-search

ElasticSearch: Full-Text Search made easy

杀马特。学长 韩版系。学妹 提交于 2019-12-10 23:54:59
问题 I am investigate possibility to switch to ElasticSearch from SphinxSearch . What is good about SphinxSearch - full-text search just work out of the bot on pretty good level. Make it work on ElasticSearch appeared not as easy as I expected. In my project I have search box with typeahead, means I stype Clint E and see dropdown with results including Clint Eastwood on the first place. Type robert down and see Robert Downey Jr. on the first place. All this I achieved with SphinxSearch out of the

Performace gains of searching with FTS over it with LIKE on indexed colum(s)?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 23:39:07
问题 Subquestioning "full-text search sql server 2005" Would the use of FTS (Full Text Search) be faster in comparison with searches using tsql LIKE on indexed column(s)? Why? And how much? 回答1: yes FTS will be faster for searches in the middle of the column, like will only be faster if what you searching is at the start of the column where lastname like 'S%' will be fast where lastname like '%S%' will be slow and the index won't be used because it has to traverse the whole column 回答2: Depending

Is Full Text Search CONTAINS clause always evaluated?

谁说我不能喝 提交于 2019-12-10 23:37:57
问题 Is there a way to avoid the error Null or empty full-text predicate in the example below ? DECLARE @SearchText VARCHAR(1000); SET @SearchText = '' SELECT * FROM myTable WHERE /* SOME CONTITIONS AND */ ( @SearchText = '' OR ( @SearchText <> '' AND CONTAINS((myField1, myField2), @SearchText) ) ) I could be doing like this, but I want to avoid duplicating the code : DECLARE @SearchText VARCHAR(1000); SET @SearchText = '' IF @SearchText = '' BEGIN SELECT * FROM myTable WHERE /* SOME CONTITIONS */

Is it possible to use full text search on encrypted column in SQL Server 2008

拥有回忆 提交于 2019-12-10 23:25:32
问题 I have a column, that is encrypted using symmetric key in a database. An encrypted content is just a text. I would like to query this text using full text search. Is it possible? I was thinking about using full text search filters to index a column, but didn't find any ready-to-use filter. So is it possible to develop such a filter, in particular, is it possible to access encryption key, that is stored in a database, from filter code and decrypt the text from the column? Could you recommend

MySQL 5.6 Full Text Search Issue when Searching for the word “the” in PHP

♀尐吖头ヾ 提交于 2019-12-10 22:25:47
问题 Im having an issue when my search includes the word "the" in my full text search. Here is my search code with the problem: SELECT * FROM names WHERE MATCH(myname) AGAINST ('+the' IN BOOLEAN MODE) This one works fine: SELECT * FROM names WHERE MATCH(myname) AGAINST ('+and' IN BOOLEAN MODE) I already turned off the stop words in my CNF file, changed the min letters to 3 using both ft_min_word_len=3 AND innodb_ft_min_token_size=3 I'm using innodb. And returns 27000 results and 'the' returns

Prepending an * (asterisk) to a Fulltext Search in MySQL

一笑奈何 提交于 2019-12-10 21:12:11
问题 I understand that the asterisk is a wildcard that can be appended to the end of fulltext search words, but what if my searched keyword is a suffix? For example, I want to be able to search for "ames" and have a result that contains the name "james" returned. Here is my current query which does not work because you cannot prepend asterisks to fulltext searches. SELECT * FROM table WHERE MATCH(name, about, address) AGAINST ("*$key*" IN BOOLEAN MODE) I would simply switch to using LIKE, but it

Looking for a cheap way to add full-text search to firestore

故事扮演 提交于 2019-12-10 20:00:49
问题 Here is what I want to do Lets assume I have an Angular Dart application with a firestore backend that e.g. stores books. Each book has a title, a summary and a published date. Now I want to add a fulltext search with pagination to my app. Since firestore does not have fulltext search I need to add this myself if I want to have e.g the first 10 books containing "cat" ordered by published date. Failed attempts My first idea was to use the Elasticsearch docker container and deploy that on

MySQLi Full Text Search For Multiple Column Category

穿精又带淫゛_ 提交于 2019-12-10 19:46:47
问题 I want to make mysqli full text search with or without multiple category based on checkbox selection. Search is based on four category within same column. Search category are windows, games, tablet, mobile. When category/multiple category selected through checkbox selection search should be done for selected category only. Table Structure id category title date ... 1 windows windows7 d1 ... 2 games windows games d2 ... 3 tablet windows tablet d3 ... 4 mobile windows mobile d4 ... 5 windows

fulltext query in joomla

安稳与你 提交于 2019-12-10 18:16:55
问题 How do I buld a fulltext search query with joomla objects. I have been trying but it's not working $db = JFactory::getDBO(); $query = $db->getQuery(true); $query->select('*'); $query->from('#__unis_subjects AS s'); $query->join('', '#__unis AS u ON s.university = u.id'); $query->join('', '#__unis_faculties AS f ON f.id = s.faculty'); $query->where('MATCH (s.subject) AGAINST ("' . $query . '")'); if (!$db->query()) { throw new Exception($db->getErrorMsg()); } $data = $db->loadObjectList(); var

How to make MySQL treat underscore as a word separator for fulltext search?

爷,独闯天下 提交于 2019-12-10 17:57:32
问题 I am using MySQL fulltext and PHP (codeigniter) to search a database containing RSS items. Problem is some of these items's titles use underscores instead of spaces. Since MySQL considers underscores as part of a word, these items will never be matched in the search, unless the user types the exact title including underscores. Server is shared so I don't have access to MySQL Server System Variables. Can this behavior be changed in some other way? Can this maybe be done through the search