full-text-search

Multiple shards on single machine performance

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 08:23:18
问题 Does it make sense to have multiple shards in Elasticsearch if I am going to use only single machine? Will it improve performance in any way? Same question for Apache Solr - does it make sense to use Solr Cloud with ZooKeeper for single server instance or just create one core without any sharding? Let's assume I am not going to use other machines in future, so the main point is how sharding on single machine influence search engines performance? 回答1: There are certain parts of Lucene that's

EF6: FullText Search not working with multiple WHERE

╄→гoц情女王★ 提交于 2019-12-25 08:20:13
问题 So I have setup an DB interceptor as described in this article. Code that works: var ft = FtsInterceptor.Fts('something'); var queryable1 = db.Sometable.Where(x=> x.Id > 30); var queryable2 = db.Sometable.Where(x=> x.Name != null && x.Name.Contains(ft)); var final = (from q1 in queryable1 join q2 in queryable2 on q1.Id equals q2.Id select q1).ToList(); Code that doesn't work: var ft = FtsInterceptor.Fts('something'); var queryable = db.Sometable.Where(x=> x.Id > 30); queryable = queryable

How to retrieve json in original nested form in apache solr?

折月煮酒 提交于 2019-12-25 08:04:03
问题 I am using apache solr for text search . I have nested document structure . This is one.json file : { "id": "1", "info": { "first_name": "John", "last_name": "Doe", "gender": "male" } } I created a solr core and posted one.json in it.Solr indexed and flattened the above document's nested structure , I guess for better indexing in following form: { "id":["1"], "info.first_name":["John"], "info.last_name":["Doe"], "info.gender":["male"] } Now, when I make the search query,the result is in

Example of File System Search using apache solr 4.0

百般思念 提交于 2019-12-25 06:04:25
问题 Hi My Requirement is that: I have to create an web application where a search text and button will be there and when I enter some text to search it should search into my local file system on windows like: C:/ drive and lists and display these files that contains the matched text. It is like windows 8 file system search. Can anybody help me on these??? I new to Solr. I configured apache-solr-4.0.0 with Tomcat7 and JDK 7. Please Help with some example. You can send me any sample application on

Example of File System Search using apache solr 4.0

喜欢而已 提交于 2019-12-25 06:03:19
问题 Hi My Requirement is that: I have to create an web application where a search text and button will be there and when I enter some text to search it should search into my local file system on windows like: C:/ drive and lists and display these files that contains the matched text. It is like windows 8 file system search. Can anybody help me on these??? I new to Solr. I configured apache-solr-4.0.0 with Tomcat7 and JDK 7. Please Help with some example. You can send me any sample application on

Unable to search '#' in elasticsearch

可紊 提交于 2019-12-25 04:01:23
问题 This query - curl -XGET http://localhost:9200/haystack/modelresult/_search?q=post_text:#test fails to execute with an error SearchPhaseExecutionException[Failed to execute phase with status 400 回答1: Try this: curl -XPOST "http://localhost:9200/haystack/modelresult/_search" -d' { "query": { "match": { "post_text": "#test" } } }' or this: curl -XPOST "http://localhost:9200/haystack/modelresult/_search" -d' { "query": { "term": { "post_text": "#test" } } }' 来源: https://stackoverflow.com

Unable to search '#' in elasticsearch

蓝咒 提交于 2019-12-25 04:01:09
问题 This query - curl -XGET http://localhost:9200/haystack/modelresult/_search?q=post_text:#test fails to execute with an error SearchPhaseExecutionException[Failed to execute phase with status 400 回答1: Try this: curl -XPOST "http://localhost:9200/haystack/modelresult/_search" -d' { "query": { "match": { "post_text": "#test" } } }' or this: curl -XPOST "http://localhost:9200/haystack/modelresult/_search" -d' { "query": { "term": { "post_text": "#test" } } }' 来源: https://stackoverflow.com

Full-text Search Using Freetexttable Failing on Noise Words - SQL Server 2008 R2 Transform Noise Words not working

喜欢而已 提交于 2019-12-25 03:56:57
问题 I am running a full-text search for my site using SQL Server 2008 R2 and freetexttable. I am getting this error when a stop word is entered: Informational: The full-text search condition contained noise word(s). So I did what everyone said to do and turned on the Transform Noise Words so the stop/noise words are ignored and the query can continue. But this changed nothing: sp_configure 'show advanced options', 1; RECONFIGURE; GO sp_configure 'transform noise words', 1; RECONFIGURE; GO I still

ADO select statement with full text search with SQL injection

折月煮酒 提交于 2019-12-25 03:27:42
问题 The database that I am connecting to has a table with a Full Text Search index. This works correctly. select * from MyTable where contains(*, 'value') In WPF if I send that exact command down it works. However value is not hard coded it is something an user types in so it needs to be protected for SQL injection. The issue is that in doing so it does not return results. Here is my code; DataTable dt = new DataTable(); string ConString = "Data Source=127.0.0.1,1433;Initial Catalog=MyDB;User Id

SQL Server Full Text Search Performance

孤者浪人 提交于 2019-12-25 03:24:29
问题 I have an Ecommerce/Online Shopping site with around 2 million items(MS SQL Server DB). It has various products and i want to implement a search functionality for it. The search could be anything like "White shirt" , "Black Shoes", "Leather Belt" so on. Please advise me about the performance of full text search and what are the pros/cons to using this. Currently my database sometimes using 50% to 60% CPU. Does full text search helps me to reduce this? 回答1: Actually, Full-Text Search (index)