full-text-search

Improving Full Text Search MYSQL

孤人 提交于 2019-12-25 03:07:14
问题 I have a search engine based site that is currently in beta mode http://www.jobportfolio.co.uk. The site has a job table that incorporates the following fields, (job_company, job_title, job_description, job_location) all the fields are Var except for description that is a text field. All the fields are indexed as FullText. My current approach is to search based on the title, location and company. This seems to work fine however I would like to improve the search results by adding in the

SQL Server fulltext contains not working in some words

前提是你 提交于 2019-12-25 01:37:31
问题 I have a fulltext search table. It generally works well. But, in some cases it failed. For example; when I search for ' "red*" NEAR "color*" ' it works properly. However, if I search for '"the*" NEAR "red*"' it fails. It didn't work for any terms which starts with the -- working case SELECT * FROM MyTable WHERE CONTAINS(MyColumn, ' "red*" NEAR "color*" ') -- failed case SELECT * FROM MyTable WHERE CONTAINS(MyColumn, ' "the*" NEAR "red*" ') Does anyone know why? 回答1: What you are experiencing

Hibernate + MSSQL + Fulltext Search via Contains SQLFunctionTemplate

限于喜欢 提交于 2019-12-25 01:16:48
问题 I've setup a fulltext index on my customer table to be able to quickly search for customers via their info. I had to create a custom hibernate dialect to simplify the mapping. and do some funky stuff to get hibernate to work Hibernate + MSSQL + Fulltext Search via Contains My custom dialect has a function that looks like this registerFunction("contains", new SQLFunctionTemplate(StandardBasicTypes.BOOLEAN, "CONTAINS(?1, ?2) AND 1")); This makes it possible to do queries as follows from

Ways to reduce search time on google script

白昼怎懂夜的黑 提交于 2019-12-25 01:09:29
问题 My code is similar to a file search engine, it takes in a keyword you are looking for, does a full text search of all the files in the users google drive and returns the files name, url source, and folder by displaying it in a spreadsheet. Code: function search(Phrase, FolderID) { // Prompt the user for a search term var searchTerm = Browser.inputBox("Enter the string to search for:"); // Get the active spreadsheet and the active sheet var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet

Dynamic Searching for exact and partial matches in excel using option buttons

邮差的信 提交于 2019-12-25 01:03:27
问题 I have the following code that allows me to search through the data on a table by using the option buttons I created that match the table headings. I can set the search criteria to be exact matches or partial. However, what I would like is to be able to search through different columns in the table without always having to go into the VBA code to toggle this option on and off. i.e some columns I would like an exact match, others I would like partial. Any help on where I can amend the code

MySql Full text Search

三世轮回 提交于 2019-12-24 22:12:23
问题 In my Job listings site, I need to show jobs which have similar titles to the one which is being viewed. I am trying the following query, but its not working: SELECT *, MATCH(title) AGAINST "Sales Coordinator" as relevance FROM jobs WHERE MATCH(title) AGAINST "Sales Coordinator" ORDER BY relevance DESC LIMIT 100 Also, can this be optimized, so as to give better results and maybe faster too? 回答1: You really need to clarify what is not working (i.e. what is it not finding) and how fast the

Sphinx - Exact match!

我的梦境 提交于 2019-12-24 20:22:22
问题 i have another question! I have an index with SPH_MATCH_ALL SPH_RANK_SPH04 and when i search for the word "ipad" the word "dissIPADor" is comming before the word IPAD alone, how can i make 'ipad' by itself, more relevant than "dissIPADor" ? 回答1: check that you are using version 2.0.2 or above of sphinx. Version 2.0.1 has a bug in it that doesn't bring single words to the top even though they are an exact match. If you have stemming set up for your morphology in that index, consider removing

search a text in a svn repository across all releases

痞子三分冷 提交于 2019-12-24 13:26:00
问题 I need to search a text in a SVN repository, inside all revisions. I am trying this software, which indexes all repositories and then you can search: http://www.supose.org/projects/supose/wiki #create the index ./bin/supose sc -U "svn://..." --username ... -p ... --fromrev 0 --create #search ./bin/supose se -Q "+contents:class" if i understood correctly, this should search across all files for the text "class". this should return a lot of matches, as there a lot of java files. however, it

Fulltext search vs standard database search

佐手、 提交于 2019-12-24 12:28:23
问题 What I want to know what is difference between fulltext searching (searching data in files) and standard database searching (LIKE, IN ect). What I notice here is that in files you don't have data types, but in database you can define data types for particular data. I am interested in what kind of search is faster and what are advantages and disadvantages of both. Thanks. 回答1: There's a few advantages to full text searching. Indexing: Something like: WHERE Foo LIKE '%Bar'; Cannot take

How come Smart search is so fast in facebook

心已入冬 提交于 2019-12-24 12:18:05
问题 I am wondering how facebook has implemented the search functinality on the home page. as soon as i type 'a' the dropdown comes with the list of friends and its very very fast.. I saw in firebug that it sends a ajax request to one of its file. I wanted to implement the same functionality in one of my webapp but even though my table has just 4 records it takes bit time to load the dropdown. What i have done is send ajax req with my search parameter executed sql query made the html and returned