full-text-search

Sql-server Full Text CONTAINS + COLLATE to ignore accents issues

人盡茶涼 提交于 2019-12-23 12:55:41
问题 Hi all im struggling a little here with using COLLATE to ignore accents whilst also using Contains full text. Ive reduced the columns im searching down to just one for the example here, and im hard coding the actual parameter just to simply this until i understand it. If i have SELECT Col1, Title COLLATE SQL_Latin1_General_Cp850_CI_AI AS Title, ColX FROM Foo WHERE CONTAINS((Title), '"suenos" OR "french"') This only returns results with french. If i add the wild card after eg: WHERE CONTAINS(

How to search exact phrase in string field with ElasticSearch?

匆匆过客 提交于 2019-12-23 12:27:05
问题 I want to search "Marketing in social networks" inside documents. All together. But i continue getting results with words separated. i have the following DSL query: { "fields": ["title"], "query": { "bool": { "should": [{ "match": { "title": "SEO" } }], "must": [{ "match": { "content": { "query": "Marketing in social networks", "operator": "and" } } }] } } } I do not have documents that contain this phrase and title but i also get results(documents) with the words of the phrase to search

Fast Text Search Over Logs

被刻印的时光 ゝ 提交于 2019-12-23 07:59:07
问题 Here's the problem I'm having, I've got a set of logs that can grow fairly quickly. They're split into individual files every day, and the files can easily grow up to a gig in size. To help keep the size down, entries older than 30 days or so are cleared out. The problem is when I want to search these files for a certain string. Right now, a Boyer-Moore search is unfeasibly slow. I know that applications like dtSearch can provide a really fast search using indexing, but I'm not really sure

Searching books in Apache Solr

大兔子大兔子 提交于 2019-12-23 05:19:50
问题 I'm very new to Solr and I'm evaluating it. My task is to look for words within a corpus of books and return them within a small context . So far, I'm storing the books in a database split by paragraphs (slicing the books by line breaks), I do a fulltext search and return the row. In Solr, would I have to do the same, or can I add the whole book (in .txt format) and, whenever a match is found, return something like the match plus 100 words before and 100 words after or something like that?

Alter Magento Index Fulltext Search?

戏子无情 提交于 2019-12-23 05:12:31
问题 I have a unique task that I have been given, and I am in the last leg of it, but this sub-task is proving to be extremely difficult! So you have background: We run a Magento site, and use a custom built SOLR search page. I am using phpSolrClient to parse the Solr XML and return usable result which I then build the search results page from. The task I have been given is to have an "attribute" in the back end of Magento, lets call that "search_tags". The goal is to be able to insert a tag, and

How to use Elasticsearch to make files in a directory searchable?

限于喜欢 提交于 2019-12-23 03:06:44
问题 I am very new to search engines and Elasticsearch, so please bear with me and apologies if this question sounds vague. I have a large directory with lots of .csv and .hdr files, and I want to be able to search text within these files. I've done the tutorials and read some of the documentation but I'm still struggling to understand the concept of indexing. It seems like all the tutorials show you how to index one document at a time, but this will take a long time as I have lots of files. Is

SOLR/LUCENE Experts, please help me design a simple keyword search from PDF index?

杀马特。学长 韩版系。学妹 提交于 2019-12-23 02:51:07
问题 I dabbled with solr but couldn't figure out a way to tailor it to my reuqirement. What I have : A bunch of PDF files. A set of keywords. What I am trying to achieve : Index the PDF files (solrcell - done) Search for a keyword (works ok) Tailor the output to spit out the names of the PDF files, an excerpt where the keyword occurred (No clue/idea how to) Tried manipulating ResponseHandler/Schema.xml/Solrconfig.xml to no avail. Lucene/solr experts, do you think what I am trying to achieve is

Non-English Language support via SolrNet

旧街凉风 提交于 2019-12-23 02:50:27
问题 I am using SolrNet to search over Solr from an .NET application. Everything works fine when I search over English words. However if I use spanish words like español , I get no search result though I have indexed them. When I debugged over Solr, I found that the query was parsed as espaA+ol . Do I have to do some UTF-8 encoding or does SolrNet supports search over only ASCII characters? 回答1: This is not a SolrNet issue, it is related to how Solr handles characters that are not in the first 127

SQL Server CONTAINSTABLE not working for single digit numbers

若如初见. 提交于 2019-12-23 01:05:32
问题 This question is about SQL Server's FTS ContainsTable. To replicate the issue, we can use the script below which will create one table and fill it with addresses. CREATE TABLE Address (FullAddress nvarchar(100) NOT NULL); CREATE UNIQUE CLUSTERED INDEX AddressKey ON Address(FullAddress); INSERT INTO Address VALUES ('1 OLD YONGE ST, AURORA, ON'); INSERT INTO Address VALUES ('1 OLD YONGE ST, NORTH YORK, ON'); INSERT INTO Address VALUES ('1 YONGE ST N UNIT 1, HUNTSVILLE, ON'); INSERT INTO Address

Implement search in Azure SQL

断了今生、忘了曾经 提交于 2019-12-22 14:52:07
问题 I'm moving an .NET application to Azure since the amount of data stored is getting bigger and the concurrent users is increasing. To be able to search I need a robust solution to search the SQL which scales. I need to return matching orders when searching (in one single field, google style). The data is stored in a few columns in these related tables: Orders, Customers and Addresses. I've read that fulltext search isn't available in Azure so I've looked att Lucene but got a bit worried about