full-text-search

What's the best way to implement typo correction into a search in php/mysql?

♀尐吖头ヾ 提交于 2019-12-22 04:40:47
问题 I have a site that lists movies. Naturally people make spelling mistakes when searching for movies, and of course there is the fact that some movies have apostrophes, use letters to spell out numbers in the title, etc. How do I get my search script to overlook these errors? Probably need something that's a little more intelligent than WHERE mov_title LIKE '%keyword%' . It was suggested that I use a fulltext search engine, but all of those things look really complicated, and I feel that

Strange behaviour with Fulltext search in SQL Server

喜夏-厌秋 提交于 2019-12-22 04:12:33
问题 I have MyTable with a Column Message NVARCHAR(MAX). Record with ID 1 contains the Message '0123456789333444 Test' When I run the following query DECLARE @Keyword NVARCHAR(100) SET @Keyword = '0123456789000001*' SELECT * FROM MyTable WHERE CONTAINS(Message, @Keyword) Record ID 1 is showing up in the results and in my opinion it should not because 0123456789333444 does not contains 0123456789000001. Can someone explain why the records is showing up anyway? EDIT select * from sys.dm_fts_parser('

Why the Full-Text indexing option is greyed out?

£可爱£侵袭症+ 提交于 2019-12-22 01:34:03
问题 I installed SQL Server 2008 Express with Advanced Services, but when I try to create a new database, the option Full-Text indexing is greyed out, I believe the full-text indexing has been installed, because I did a query as below: use [mydbname] select fulltextserviceproperty('isfulltextinstalled') This query returns 1, so I think it has been successfully installed. Full-text indexing is supported in MSSQL Express with Advanced Services edition, which I have installed. Page for reference:

Postgres full text search: how to search multiple words in multiple fields?

元气小坏坏 提交于 2019-12-21 22:02:47
问题 i'm using for the first time Postgresql and i'm trying to create a search engine in my website. i have this table: CREATE TABLE shop ( id SERIAL PRIMARY KEY, name TEXT NOT NULL, description TEXT, address TEXT NOT NULL, city TEXT NOT NULL ); Then i created an index for every field of the table (is this the right way? Or maybe i can create one index for all fields?): CREATE INDEX shop_name_fts ON shop USING gin(to_tsvector('italian', name)); CREATE INDEX shop_desc_fts ON shop USING gin(to

Full Text Search: Noise words are being searched for

这一生的挚爱 提交于 2019-12-21 17:56:52
问题 I have a database in SQL Server 2008 with Full Text Search indexes. I have defined the Stopword 'al' in the Stoplist. However, when I search for any phrase with the keyword 'al', the word 'al' is still uesd in ranking. This might be related to the fact that I am breaking up search terms, and reconstructing them. I am then searching across multiple fields and ranking the results: http://pastebin.com/fdce11ff. This functions to break up a search 'al hamra' into ("*al*" ~ "*hamra*") OR ("*al*"

How could I generate a contextual text extract from text returned from a SQL Server Full-Text Index?

耗尽温柔 提交于 2019-12-21 17:50:07
问题 I'm experimenting with an idea using SQL Server's Full Text Indexing. It seems perfect for the task, but what my client wants is a very Google-like results summary, where the results display an extract of the text around their search term . If I search for "house"... My House Is a Very, Very, Very Fine House ...thanks for coming to visit our house today...don't you like this house ...hey, why are you setting fire to my house ?... This isn't too hard if their search term is an exact match for

Which is best serach technique to search records [closed]

主宰稳场 提交于 2019-12-21 17:47:36
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have 10,000,000 records which will be the best technique to search records, currently i m using full text search but it is slow

Full-text search for local/offline web “site” [duplicate]

怎甘沉沦 提交于 2019-12-21 17:28:37
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Full-text search for static HTML files on CD-Rom via javascript I'm starting development of an application that creates a bunch of HTML files locally that can then be browsed in whatever web browser is on the system (including mobile devices) to which they're copied. The HTML files have many interactive features, so it's essentially an offline web app. My question is, what is the best way to implement full-text

Django text search with partial sentence match

▼魔方 西西 提交于 2019-12-21 17:17:22
问题 I am building a site in which I want to implement text search for the title and description of some objects. Since I will have little amount of objects (~500 documents) I am not considering Haystack and the such. I only need 2 features: Be able to prioritize matches on the title over the description (with some kind of weight). Allow partial match of the sentence. For example, if I search for 'ice cream', get also the results for 'ice' and 'cream'. I have looked into django-watson and django

FULLTEXT query with scores/ranks in Postgresql

孤者浪人 提交于 2019-12-21 14:51:24
问题 Im new to Postgres and I dont know how to translate this MySQL query to postgres: SELECT pictures.id, MATCH (title, cached_tag_list) AGAINST ('phrase') AS score FROM pictures WHERE MATCH (title, cached_tag_list) AGAINST ('phrase') ORDER BY score DESC; 回答1: The Postgres fulltext search is a little different from the MySQL fulltext search. It has a lot more options but can be a bit more difficult to get working the way you like it. This document tells you how to rank your search results, but I