full-text-search

SQL Server 2008 FullTextSearch Single Character in Name Missing from Results

强颜欢笑 提交于 2019-12-30 22:53:26
问题 I have a full text indexed column in SQL Server 2008 which has the following rows: W Smithers, Wilda Smithers, W2 Smithers When I run the following query I only get back Wilda Smithers and W2 Smithers. SELECT FT_TBL.full_name as results FROM dbo.ft_table AS FT_TBL WITH (NOLOCK) INNER JOIN CONTAINSTABLE (ft_table , full_name, '("w*" AND "smither*")',12) AS KEY_TBL ON FT_TBL.ft_key_id = KEY_TBL.[KEY] ORDER BY KEY_TBL.RANK desc Any suggestions on how to tweak this so W Smithers is also in my

Best approach for doing full-text search with list-of-integers documents

时光怂恿深爱的人放手 提交于 2019-12-30 13:31:57
问题 I'm working on a C++/Qt image retrieval system based on similarity that works as follows (I'll try to avoid irrelevant or off-topic details): I take a collection of images and build an index from them using OpenCV functions. After that, for each image, I get a list of integer values representing important "classes" that each image belongs to. The more integers two images have in common, the more similar they are believed to be. So, when I want to query the system, I just have to compute the

How to query an external content FTS4 table but return additional columns from the original content table

荒凉一梦 提交于 2019-12-30 10:18:07
问题 I am creating an FTS4 external content table in SQLite like this: CREATE TABLE t2(id INTEGER PRIMARY KEY, col_a, col_b, col_text); CREATE VIRTUAL TABLE fts_table USING fts4(content="t2", col_text); I'm using an external content table so that I don't need to store duplicate values of col_text in fts_table . I'm only indexing col_text because col_a and col_b don't need to be indexed. However, when I do a query of fts_table like this SELECT * FROM fts_table WHERE fts_table MATCH 'something'; I

How do I assign weights to different columns in a full text search?

别来无恙 提交于 2019-12-30 06:16:05
问题 In my full text search query, I want to assign particular columns a higher weightage. Consider this query: SELECT Key_Table.RANK, FT_Table.* FROM Restaurants AS FT_Table INNER JOIN FREETEXTTABLE(Restaurants, *, 'chilly chicken') AS Key_Table ON FT_Table.RestaurantID = Key_Table.[KEY] ORDER BY Key_Table.RANK DESC Now, I want the Name column to have a higher weightage in the results (Name, Keywords and Location are full-text indexed). Currently, if the result is found in any of the three

Search queries in neo4j: how to sort results in neo4j in START query with internal TFIDF / levenshtein or other algorithms?

北城余情 提交于 2019-12-30 05:32:05
问题 I am working on a model using wikipedia topics' names for my experiments in full-text index. I set up and index on 'topic' (legacy), and do a full text search for : 'united states' : start n=node:topic('name:(united states)') return n The first results are not relevant at all: 'List of United States National Historic Landmarks in United States commonwealths and territories, associated states, and foreign states' [...] and the actual 'united states' is buried deep down the list. As such, it

SQL Server full text query across multiple tables - why so slow?

谁说我不能喝 提交于 2019-12-30 04:40:10
问题 I'm trying to understand the performance of an SQL Server 2008 full-text query I am constructing. The following query, using a full-text index, returns the correct results immediately: SELECT O.ID, O.Name FROM dbo.EventOccurrence O WHERE FREETEXT(O.Name, 'query') ie, all EventOccurrences with the word 'query' in their name. And the following query, using a full-text index from a different table, also returns straight away: SELECT V.ID, V.Name FROM dbo.Venue V WHERE FREETEXT(V.Name, 'query')

How do I index documents in SOLR?

混江龙づ霸主 提交于 2019-12-30 04:40:08
问题 Im running Solr 1.4 on Ubuntu 10.04 (installed via apt-get solr-tomcat) and it seems to be working fine. Im having some difficulty finding any coherent info on how to index documents though. Im new to SOLR so bear with me! I have a folder (/mnt/folder) that is a mounted windows share, which contains Word and PDF files that I would like indexed, whats the easiest way to get SOLR to index the entire folder? The documentation for SOLR is pretty poor, its impossilbe to find any decent tutorials

Using full text search with geospatial index on Mongodb

為{幸葍}努か 提交于 2019-12-30 03:13:05
问题 Let's say I want to develop an android app that allows a user to search a hotel that is closest to where you are located. This is very common on apps nowadays, like AirBnb for example. This is the dataset I'm using: { "name" : "The Most Amazing Hotel", "city" : "India", "type": "Point" "coord": [ -56.16082, 61.15392 ] } { "name" : "The Most Incredible Hotel", "city" : "India", "type": "Point" "coord": [ -56.56285, 61.34590 ] } { "name" : "The Fantastic GuestHouse", "city" : "India", "type":

open source faceted search / guided navigation for ecommerce sites with .net apis

寵の児 提交于 2019-12-29 08:16:45
问题 i am looking for open source libraries which provide high performance faceted search / guided navigation for ecommerce sites our ecommerce platform is entirely built on .net and so i would prefer libraries which do provide .net apis performance is of utmost importance here... i checked out sphinx as well as solr but looking for better options as far as performance goes as per blogs sphinx takes an average of 5 - 6 seconds to perform the first level of faceted search which is unacceptable in a

TDictionary save to file

我的梦境 提交于 2019-12-29 07:11:50
问题 I have a lot of files(about 160 000) and I need to have information about position of individual words in files(fulltext). So I used Dictionary like this: WordDict : TDictionary<string, TDictionary<string, TIntegerDynArray>>; Now I know that WORD1 is in FILE1,FILE3 and FILE100 and positions in each file <1,3,5>,<2,8,35> etc. I can fill it, I can use it - its very fast. But I don't know how effectively store dictionary to file. EDIT: effectively - I mean quickly and small size of file 回答1: You