full-text-search

building fulltext search index for jena and lucene

六月ゝ 毕业季﹏ 提交于 2019-12-13 03:24:47
问题 I would like to perform a full text search on a subset of dbpedia (which i have in a tdb store) with lucene and jena. String TDBDirectory = "path" ; Dataset dataset = TDBFactory.createDataset(TDBDirectory) ; But not over all resources, only over titles. I think by making indices only over the needed triples I can perform a faster search. E.g. <http://de.dbpedia.org/resource/Gurke> <http://www.w3.org/2000/01/rdf-schema#label> "Gurke"@de . Here I would like to search for "Gurke", but not in any

Hibernate Search: Search any part of the field without losing field's content while indexing

杀马特。学长 韩版系。学妹 提交于 2019-12-13 03:13:05
问题 I would like to be able to find an entity based on any part of its indexed fields, and the fields must not loose any content while indexing. Lets say I have the following sample entity class: @Entity public class E { private String f; // ... } And if the value of f in one entity is "This is a nice field!" , I would like to be able to find it by any of these queries: "this" "a" "IC" "!" "This is a nice field!" The most obvious decision is to annotate the entity this way: @Entity @Indexed

Controlling file extension when inserting data into SQL Filestream column?

筅森魡賤 提交于 2019-12-13 02:33:33
问题 I have a SQL Server Express database with a 10gig limit, so I'm trying to save space by moving a big text column over to a FileStream type. I created a new database, set up FileStreaming as well as the FileStream column and set it up as a full text index. Then I tried inserting data into the new database from my other database (insert column to column). The resulting FileStream files are being created with no file extension (which I guess is to be expected). I think this is causing my full

Sql Server 2008 Full-Text Index (characters issue)

那年仲夏 提交于 2019-12-13 01:17:20
问题 The Full-Text Index searching is working perfect but suddenly I noticed that it fails when it comes to some characters variance in Arabic In Arabic we have a trailing letter say {I} that can be written like { i } or { I } , It's the same letter but different ASCII code.. exactly like the English variance between { i } & { I } the "Contains" function can get "ALi" but not "ALI" both {ALi & ALI} exist.. {ALi} returns result but without the result of {ALI} {ALI} return 0 records when using full

Boost SolR results using users behavior

拈花ヽ惹草 提交于 2019-12-13 00:10:44
问题 I would like SolR to be able to "learn" from my website users' choices. By that i mean that i know which product the user click after he performed a search. So i collected a list of [term searched => number of clicks] for each product indexed in SolR. But i can't figure how to have a boost that depends on the user input. Is it possible to index some key/value pairs for a document and retrieve the value with a function usable in the boost parameter ? I'm not sure to be clear, so i'll add a

how to implement search for 2 different table data?

跟風遠走 提交于 2019-12-12 18:05:04
问题 Using mysql and PHP I am using MATCH AGAINST clauses already. It is working fine against individual tables. Like if i want to search in shops table. No problem. What i want is to be able to search and DISPLAY results from different tables in a single result page. Eg if i type "chocolate clothes" i may get 4 results as follows: Shop1 result ShopItem1 result ShopItem2 result Shop2 result and of course the most relevant results should be ranked first. i have quite a few questions. design wise as

SQLite full-text search unicode in android

走远了吗. 提交于 2019-12-12 17:07:05
问题 I am creating a table in SQLite using fts(3 or 4) CREATE VIRTUAL TABLE Demo1 USING fts3(content TEXT); insert into Demo1 values('Hồ Thanh Long'),('Nguyễn Văn A') When search: select * from Demo1 where content Match 'Hồ' Then result is: 'Hồ Thanh Long' When search: select * from Demo1 where content Match 'Ho' Then no result. Help me! 回答1: You must create the FTS table with a tokenizer that can handle Unicode characters, i.e., ICU or UNICODE61 . Please note that these tokenizers might not be

Near matches not found in CONTAINSTABLE

这一生的挚爱 提交于 2019-12-12 16:13:46
问题 I am using SQL Server 2008 DDL CREATE TABLE [dbo].[t]( [words] [varchar](1000) NULL, [id] [int] IDENTITY(1,1) NOT NULL ) ON [PRIMARY] DML insert into t(words)values('this is my laptop') insert into t(words)values('this does not contains headphone') SQL Query SELECT * FROM t as t JOIN CONTAINSTABLE(t, words,'"headphone*"', 10) fulltextSearch ON t.Id = fulltextSearch.[KEY] Results No record found I am expecting one records. Any Idea? 回答1: 'this' is very likely a noise word (like 'the', 'and',

Entity Framework 5, Code First, Full Text Search but IQueryable via CreateQuery?

旧巷老猫 提交于 2019-12-12 16:01:49
问题 I am using .NET 4.5 and EF 5 with Code First approach and now I need to implement Full Text Search. I have already read a lot about it and so far my conclusions are: Stored procedures nor Table Value Functions can not be mapped with Code First. Still I can call them using dynamic sql dbContext.Database.SqlQuery<Movie>(Sql, parameters) But this returns IEnumerable and I want IQueryable so that I can do more filtering before fetching the data from db server. I know I can send those parameters

How solr filters actually implemented?

◇◆丶佛笑我妖孽 提交于 2019-12-12 14:08:39
问题 Is my understanding of query processing correct? Get DocSet from cache or First filter query will create implementation of OpenBitSet or SortedVIntSet and cache it Get DocSet from cache or All other filters create their implementation of DocBitSet and it will be intersected with original ( efficiency of this code depends on implementation of first implementation of DocSet ) We do leapfrog with MainQuery and final DocSet(after all intersections) using Lucene filter+query search( efficiency of