full-text-search

SQL Server PDF Full-Text Search not working on FileStream PDF File

瘦欲@ 提交于 2019-12-18 02:49:22
问题 I cannot get the Full-Text search to work on PDF files I am loading into my SQL Db via FileStream. Version: SQL Server 2008 R2 (Developer Edition - doing proof of concept) OS: Windows 7 Steps I have taken. Installed the Adobe iFilter Made sure SQL Server full Text Daemon service is running Added the environment path to the Adobe PDF Filter bin directory Ran the below scripts to setup the new iFilter and make sure it is active EXEC sp_fulltext_service @action='load_os_resources', @value=1; --

Sql serve Full Text Search with Containstable is very slow when Used in JOIN!

廉价感情. 提交于 2019-12-18 01:06:12
问题 I am using sql 2008 full text search and I am having serious issues with performance depending on how I use Contains or ContainsTable. Here are sample: (table one has about 5000 records and there is a covered index on table1 which has all the fields in the where clause. I tried to simplify the statements so forgive me if there is syntax issues.) Scenario 1: select * from table1 as t1 where t1.field1=90 and t1.field2='something' and Exists(select top 1 * from containstable(table1,*, 'something

Fastest way to find string by substring in SQL?

筅森魡賤 提交于 2019-12-17 23:38:34
问题 I have huge table with 2 columns: Id and Title. Id is bigint and I'm free to choose type of Title column: varchar, char, text, whatever. Column Title contains random text strings like "abcdefg", "q", "allyourbasebelongtous" with maximum of 255 chars. My task is to get strings by given substring. Substrings also have random length and can be start, middle or end of strings. The most obvious way to perform it: SELECT * FROM t LIKE '%abc%' I don't care about INSERT, I need only to do fast

MySQL Fulltext search against column value?

半腔热情 提交于 2019-12-17 20:36:16
问题 I need to do a Fulltext search for a whole bunch of values out of a column in another table. Since MATCH() requires a value in the AGAINST() part, a straightforward: "SELECT a.id FROM a,b WHERE MATCH(b.content) AGAINST(a.name)" fails with "Incorrect arguments to AGAINST". Now, I know I could write a script to query for a list of names and then search for them, but I'd much rather work out a more complex query that can handle it all at once. It doesn't need to be speedy, either. Ideas? thanks

PDO and MySQL Fulltext searches

邮差的信 提交于 2019-12-17 19:42:44
问题 I'm converting all my sites code from using mysql_* functions to PDO. The PHP documentation on PDO is not clear for my needs. It gives you the functions to use, but does not go into detail to explain them in different scenarios. Basically, I have a mysql fulltext search: $sql = "SELECT ... FROM search_table WHERE MATCH(some_field) AGAINST ('{$searchFor}*' IN BOOLEAN MODE)"; The actual statements much longer, but this is what it basically does. My question is, how would I incorporate this into

ignoring mysql fulltext stopwords in query

馋奶兔 提交于 2019-12-17 19:38:24
问题 I'm building a search for a site, which utilizes a fulltext search. The search itself works great, that's not my problem. I string together user provided keywords (MATCH... AGAINST...) with AND's so that multiple words further narrow the results. Now, I know that certain stop words aren't indexed, and that's fine with me I don't really want to use them as selection criteria. But, if a stopword is provided in the keyword set (by the user), it kills all the results (as expected) even if the

Full text search does not work if stop word is included even though stop word list is empty

孤街醉人 提交于 2019-12-17 18:19:13
问题 I would like to be able to search every word so I have cleared the stop word list. Than I have rebuilt the index. But unfortunately if I type in a search expression with stop word in it it still returns no row. If I leave out just the stop word I do get the results. E.g. "double wear stay in place" - no result, "double wear stay place" - I get the results that actually contain "in" as well. Does anyone know why this can be? I am using SQL Server 2012 Express. Thanks a lot! 回答1: Meanwhile I

Optimizing mysql fulltext search

怎甘沉沦 提交于 2019-12-17 16:08:21
问题 I want to make a search with fulltext in my web. I need the search with a pagination. my database have 50,000+ rows/per table. I have alter my table and make (title,content,date) to be index. the table is always update, there still have a column id which is automatic increase. and the latest date is always at the end of table. date varchar(10) title text content text but whole query time will cost 1.5+ seconds . I search the many articles via google, some wrote that only limit Index field

mySQL MATCH across multiple tables

北战南征 提交于 2019-12-17 10:55:11
问题 I have a set of 4 tables that I want to search across. Each has a full text index. Can a query make use of every index? CREATE TABLE `categories` ( `id` int(5) unsigned NOT NULL auto_increment, `display_order` int(5) unsigned default NULL, `name` varchar(64) default NULL, `last_modified` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `order` (`display_order`), FULLTEXT KEY `full_name` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT

Error when creating unaccent extension on PostgreSQL

China☆狼群 提交于 2019-12-17 10:52:08
问题 I am trying to configure PostgreSQL to use fulltext search in my rails app as mentioned in this Railscast. I am using a fresh Ubuntu 12.04 server running PostgreSQL 9.1.5 installed using apt-get with the ppa:pitti/postgresql with precise . I get the following error when trying to run the migration and when I try the same command in the psql console with the peer postgres user: postgres=# CREATE EXTENSION unaccent; ERROR: could not open extension control file "/usr/share/postgresql/9.1