full-text-search

Search for [ ] and replace everything between it

℡╲_俬逩灬. 提交于 2019-12-11 07:01:43
问题 I have a template file that uses the structure [FIRSTNAME] [LASTNAME] etc etc.... and I will be doing a search and replace on it. One thing that I would like to do is that when the template get's sent back, IF I haven't stipulated, [FIRSTNAME].... it still shows in the template... I would like to make it NULL IF I haven't stipulated any data to that variable. in my code i'm using the FILE_GET_CONTENTS $q = file_get_contents($filename); foreach ($this->dataArray as $key => $value) { $q = str

Full Text Search Auto-Partition Schemes and Functions

你离开我真会死。 提交于 2019-12-11 06:47:20
问题 We have some full text searches running on our SQL Server 2012 Development (Enterprise) database. We noticed that partition schemes and functions are being (periodically) added to the DB. I can only assume that the partitions are for FTS as they have the following form: Scheme: CREATE PARTITION SCHEME [ifts_comp_fragment_data_space_46093FC3] AS PARTITION [ifts_comp_fragment_partition_function_46093FC3] TO ([FTS], [FTS], [FTS]) Function: CREATE PARTITION FUNCTION [ifts_comp_fragment_partition

Relevance by type on same field in elasticsearch

心不动则不痛 提交于 2019-12-11 06:43:57
问题 Is there any way to boost search results on same field depending on type? My basic boosting is something like: GET _search { "query": { "simple_query_string": { "query": "mangan", "fields":["_all", "title^6"] } } } But for some other documents I want title to be less important, so I tried to prefix it with type: GET _search { "query": { "simple_query_string": { "query": "mangan", "fields":[ "_all", "DocumentationPage.title^6", "DocumentationPage.title^6"] } } } But then it does not boost at

find a result from a .doc type that store in a varbinary(max) column

坚强是说给别人听的谎言 提交于 2019-12-11 06:37:08
问题 i want to write a query with Full-Text-Search on a column with varbinary(max) type that stored a .doc/.docx(MS-Word) file. my query must returns records that contain a word in stored file. is this possible? if yes,how?(please write an example) if yes,can we write that for other language(e.g Arabic,Persian or a UniCode characters)? thank you beforehand. 回答1: What you're looking for is fulltext indexing, which has been greatly improved in SQL Server 2008. For an introduction, I would recommend

How to: match (search space) against (join with column from other table)

℡╲_俬逩灬. 提交于 2019-12-11 05:58:26
问题 I'm lousy at SQL queries so this may be a silly question. However, here is roughly what i'd like to do: table corpuses //stuff i'd like to search thru title body ... table searches //list of search terms to be applied to corpuses term ... The query i'd like to write is more or less as follows: I beleive I need some sort of a join, but I'm not sure just how to do that. Additionally, I'm not sure that the against() operator will take anything aside from a literal - the docs didn't seem to

sqlite with full text search doesn't find results when space in query

妖精的绣舞 提交于 2019-12-11 05:53:31
问题 I'm playing with notmuch-abook which uses sqlite3 to store names and email addresses. The sqlite table uses full text search, being created by: CREATE VIRTUAL TABLE AddressBook USING fts4(Name, Address); I have entries for myself with names "Hamish", "Hamish D" and "Hamish Downer". The query select * from addressbook where addressbook match 'hamish'; Finds them all. However select * from addressbook where addressbook match 'hamish d'; Finds only the entries with the exact name "Hamish D" but

Does BLOB data types in SQLite supports FULL-text search?

半腔热情 提交于 2019-12-11 05:45:27
问题 I am developing an Application using PHP and SQLite. And I create a my table's column with BLOB data types. I want to know that does BLOB data types in SQLite supports FULL-text search? 回答1: As I understand the documentation, the type specified is parsed, but ignored: a datatype name may be optionally specified for each column. This is pure syntactic sugar, the supplied typenames are not used by FTS or the SQLite core for any purpose. This suggests that all columns in the table are created as

Will SQL Server 2012 FTS have native support for hit highlighting? [closed]

天涯浪子 提交于 2019-12-11 05:41:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Sql Server 2008 does not natively support hit highlighting in its FTS functionality, and currently you must implement yourself using a variety of techniques. Microsoft has made some vague noises about including it in future SQL Server releases. Does anyone know if SQL Server 2012 FTS will have native support for

Query is not understandable - using field Fulltext search [Tags] = “foo”

江枫思渺然 提交于 2019-12-11 05:31:18
问题 I have a problem that only happens rarely with FT search. but once it happens it stays. I use the following search term in the FT search box in Lotus Notes [Tags] = "foo" in most application this search term work fine. but for some applications this search term gives the error "query is not understandable". It does not matter if I replace the value, e.g [Tags] = "boo" produce the same result. and also FIELD Tags = "boo". for the record [Tag] = "foo" works fine so it seem be issues with the

MySQL Full-text search - search for short words

萝らか妹 提交于 2019-12-11 05:09:25
问题 I have a problem. I made a simple search engine which searches by brand and model of car. For reasons of query performance and a lot of data in database, I decided to use full-text search. It's ok, but now I come across the problem: I would like to find all cars with brand "Audi" and with model "Q7". For now, I have this SQL query, but it doesn't work right, because of word length "Q7": SELECT `a`.`id`, `a`.`title`, `a`.`askprice`, `a`.`description`, `a`.`picture` FROM (`mm_ads` as a) WHERE