full-text-search

SQL Server 2012 Install or add Full-text search

时间秒杀一切 提交于 2019-12-18 13:55:07
问题 I am working in SQL Server 2012, and would like to use the CONTAINS() function only it seems I need to have full-text search enabled for to be able to use it. How do I enable/install this feature to an existing SQL Server 2012 install? What I need are steps please as I am yet to find the steps on going about this. 回答1: You can add full text to an existing instance by changing the SQL Server program in Programs and Features . Follow the steps below. You might need the original disk or ISO for

Match a phrase ending in a prefix with full text search

我怕爱的太早我们不能终老 提交于 2019-12-18 13:24:59
问题 I'm looking for a way to emulate something like SELECT * FROM table WHERE attr LIKE '%text%' using a tsvector in PostgreSQL. I've created a tsvector attribute without using a dictionary. Now, a query like ... SELECT title FROM table WHERE title_tsv @@ plainto_tsquery('ph:*'); ... would return all titles like 'Physics', 'PHP', etc. But how can I create a query that returns all records where the title start with 'Zend Fram' (which should return for instance 'Zend Framework')? Of course, I could

Why does the cardinality of an index in MySQL remain unchanged when I add a new index?

你。 提交于 2019-12-18 13:17:23
问题 I have added a FULLTEXT index to one of my MySQL database tables as follows: ALTER TABLE members ADD FULLTEXT(about,fname,lname,job_title); The problem is that using phpmyadmin I can see the cardinality of my new index is only 1 . Does this mean the index will never be used? I have run a analyze table command but it didn't seem to do anything. analyze table members The respective types of the index fields are varchar(100), varchar(100), text, varchar(200) and the engine used is MyISAM and the

Indexing PDF with Solr

∥☆過路亽.° 提交于 2019-12-18 12:54:43
问题 Can anyone point me to a tutorial. My main experience with Solr is indexing CSV files. But I cannot find any simple instructions/tutorial to tell me what I need to do to index pdfs. I have seen this: http://wiki.apache.org/solr/ExtractingRequestHandler But it makes very little sense to me. Do I need to install Tika? Im lost - please help 回答1: With solr-4.9 (the latest version as of now), extracting data from rich documents like pdfs, spreadsheets(xls, xlxs family), presentations(ppt, ppts),

Postgresql prefix wildcard for full text

感情迁移 提交于 2019-12-18 12:12:22
问题 I am trying to run a fulltext query using Postgresql that can cater for partial matches using wildcards. It seems easy enough to have a postfix wildcard after the search term, however I cannot figure out how to specify a prefix wildcard. For example, I can perform a postfix search easily enough using something like.. SELECT "t1".* FROM "t1" WHERE (to_tsvector('simple', "t1"."city") @@ to_tsquery('simple', 'don:*') ) should return results matching "London" However I cant seem to do a prefix

Updating indexed document in Elasticsearch

亡梦爱人 提交于 2019-12-18 10:54:26
问题 I am trying to understand how you update an indexed document in Elasticsearch. I don't understand how it works? What is the ctx that the API is referring to doing? Let say you have a document with nested documents what do you have to do to update it? And what is the difference between deleting the document and then index the "updated" version, vs a plain update? 回答1: The update request retrieve source from Elasticsearch, modifies it and indexes it back to Elasticsearch. If you already have a

.NET library for text algorithms?

放肆的年华 提交于 2019-12-18 10:21:37
问题 Do you know any .NET library for text algorithms?? Especially I'm interested in strings match, and full-text-search algorithms like Bitap algorithm Levenshtein distance Damerau–Levenshtein distance I know the one I have mentioned are pretty simple to code, but there are hundreds of text algorithms, i don't want to code them all by myself. If there is no such .NET library known, you can mention C, C++ library, coding wrapper will be easer than coding from zero. 回答1: You may be interested in

How reliable is ElasticSearch as a primary datastore against factors like write loss, data availability

淺唱寂寞╮ 提交于 2019-12-18 10:07:25
问题 I am working on a project with a requirement of coming up with a generic dashboard where a users can do different kinds of grouping, filtering and drill down on different fields. For this we are looking for a search store that allows slice and dice of data. There would be multiple sources of data and would be storing it in the Search Store. There may be some pre-computation required on the source data which can be done by an intermediate components. I have looked through several blogs to

SQL Server 2008 Full Text Search (FTS) versus Lucene.NET

非 Y 不嫁゛ 提交于 2019-12-18 09:59:21
问题 I know there have been questions in the past about SQL 2005 versus Lucene.NET but since 2008 came out and they made a lot of changes to it and was wondering if anyone can give me pros/cons (or link to an article). 回答1: I built a medium-size knowledge base (maybe 2GB of indexed text) on top of SQL Server 2005's FTS in 2006, and have now moved it to 2008's iFTS. Both situations have worked well for me, but the move from 2005 to 2008 was actually an improvement for me. My situation was NOT like

how do I fix full text search for 3 characters?

匆匆过客 提交于 2019-12-18 09:32:48
问题 I have used full text search mysql. My code is select * from uh_property WHERE match(fieldname) against('serach_word') Now when i type word of three character search record is not displayed. For example i have record with name 'eco'. When i type eco in text box for search no record displayed. I found that minimum character for full text search is 4. Is there anyway to solve this problem? 回答1: Please see Fine-Tuning MySQL Full-Text Search. You first need to change ft_min_word_len (or innodb_ft