full-text-indexing

SQL Server 2012 - Fulltext search on top of a filetable - PDF not being searched

爷,独闯天下 提交于 2019-12-12 13:08:15
问题 I'm getting my feet wet with handling a load of Office and PDF documents with SQL Server 2012's FILETABLE feature, and using fulltext search on top of that. I've configured my SQL Server to support fulltext search and filestream, and I've created a FILETABLE , dumped 800+ documents of all sorts into the folder, and that all works nicely. In order to be able to fulltext index MS Office documents, I've installed the MS Filter Pack 2.0, and to handle the PDF files, I've downloaded Adobe's

How to setup Lucene/Solr for a B2B web app?

独自空忆成欢 提交于 2019-12-12 11:16:54
问题 Given: 1 database per client (business customer) 5000 clients Clients have between 2 to 2000 users (avg is ~100 users/client) 100k to 10 million records per database Users need to search those records often (it's the best way to navigate their data) Possibly relevant info: Several new clients each week (any time during business hours) Multiple web servers and database servers (users can login via any web server) Let's stay agnostic of language or sql brand, since Lucene (and Solr) have a

Extract specific words from text field in mysql

杀马特。学长 韩版系。学妹 提交于 2019-12-12 04:19:11
问题 I have a table that contains a text field, there is around 3 to 4 sentences in the field depending on the row. Now, I am making an auto-complete html object, and I would like to start typing the beginning of a word and that the database return words that start with those letters from the database text field. Example of a text field: I like fishsticks, fishhat are great too in my auto-complete if I would type "fish" it would propose "fishsticks" and "fishhat" Everything works but the query. I

unknown top level operator: $orderby

送分小仙女□ 提交于 2019-12-11 13:42:32
问题 We've a node.js + mongoose app running on Ubuntu linux servers spun on DigitalOcean VPS. One of our mongoose queries have a text index with the following operators: less than / equal to limit order by and looks like this: db.sampleCollection.find({ $text: { $search: userInput }, $lte: { expired: (new Date()).addDays(30) }, $limit: 9, $orderby: { postedAt: -1 } }) which throws this error: unknown top level operator: $orderby Solutions already considered: Mongoose uses $set by default, however

MySQL FULLTEXT query issue

邮差的信 提交于 2019-12-11 12:26:40
问题 I'm trying to query using mysql FULLTEXT, but unfortunately its returning empty results even the table contain those input keyword. Table: user_skills : +----+----------------------------------------------+ | id | skills | +----+----------------------------------------------+ | 1 | Dance Performer,DJ,Entertainer,Event Planner | | 2 | Animation,Camera Operator,Film Direction | | 3 | DJ | | 4 | Draftsman | | 5 | Makeup Artist | | 6 | DJ,Music Producer | +----+-----------------------------------

MySQL Full Text Search Not Matching

久未见 提交于 2019-12-11 03:19:15
问题 My MySQL table is not returning results with a MATCH (col) AGAINST ('') query. The table is simple: id | url | fullTextIndex And my query is SELECT *, Match(fullTextIndex) AGAINST ("7f7f7f807f8080807f8080807f7f7f807c828888808a86967e8b858d7f89838a76829e958f7badb68084a3a38384899077848b877f799f9c85799fa2827d8c8a ") FROM Pictures; The last column, the match, is always 0. Except, I know for a fact that the string above is contained, verbatim, in one of the values. Things to note: The string is

Using Match and Against in MySQL and CodeIgniter

北慕城南 提交于 2019-12-11 01:52:46
问题 I am trying to implement a search feature into my codeIgniter project. I have a table called product_search, where I am set a fulltext index using the following command: ALTER TABLE `product_search` ADD FULLTEXT (`prod_title`, `prod_desc`) I then search it using the following codeIgniter code: $this->db->select("prod_id"); $this->db->where("MATCH (`prod_title`, `prod_desc`) AGAINST ('{$searchStr}')"); $this->db->or_where("prod_id LIKE '%{$searchStr}%'"); $this->db->or_where("prod_sku LIKE '%{

Hibernate full text search custom order by

血红的双手。 提交于 2019-12-10 19:26:19
问题 We want to add custom order by to hibernate full text search,suppose we want to search the record based on location, if the location is "country,state,city Then we want to have the search with records in the top which are near to user We followed following links. using mysql "order by case" in hibernate criteria But the order by clause is not getting added when we add it to criteria object Sort is working only when we set to full Text Query object like below, here we can do only asc and desc,

Tell me SQL Server Full-Text searcher is crazy, not me

为君一笑 提交于 2019-12-10 14:39:16
问题 i have some customers with a particular address that the user is searching for: 123 generic way There are 5 rows in the database that match: ResidentialAddress1 ============================= 123 GENERIC WAY 123 GENERIC WAY 123 GENERIC WAY 123 GENERIC WAY 123 GENERIC WAY i run a FT query to look for these rows. i'll show you each step as i add more criteria to the search: SELECT ResidentialAddress1 FROM Patrons WHERE CONTAINS(Patrons.ResidentialAddress1, '"123*"') ResidentialAddress1 =========

Lucene.NET on shared hosting

风格不统一 提交于 2019-12-10 11:56:37
问题 I'm trying to get Lucene.NET to work on a shared hosting environment. Mascix over on codeproject outlines here how he got this to work on godaddy. I'm attempting this on isqsolutions. Both examples he posted run fine on my local machine and both throw the same error on the the shared hosting server: Compiler Error Message: CS0246: The type or namespace name 'Lucene' could not be found (are you missing a using directive or an assembly reference?) Line 1: <%@ Page Language="C#" %>Line 2: Line 3