full-text-search

Code-First Entity Framework w/ Stored Procedure returning results from complex Full-text Searches

谁说胖子不能爱 提交于 2020-01-09 13:01:16
问题 I am looking for design advice for the following scenario: I have a code-first EF5 MVC application. I am building a full-text search function which will incorporate multiple weighted columns from many tables. As I cannot create view with an index from these tables (some of them contain text / binary columns), I have created a stored procedure which will output the ID of my object (eg. PersonID ) and the rank associated with that object based on the search terms. My current approach is to

What are some Search Servers out there? [closed]

混江龙づ霸主 提交于 2020-01-09 12:52:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm looking to find alternatives to Solr from the Apache Software Foundation. For those that don't know, Solr is an enterprise search server. A client application uses a web-services like interface to submit documents for indexing and also to perform search queries. Solr has other features built in like caching

Elasticsearch full-text query issue from inner array

拜拜、爱过 提交于 2020-01-07 06:56:48
问题 This is my object. and I want find text inside of task i.e task.name. { "_id" : ObjectId("55e2acd77e5e4ddc037b3ef5"), "userId" : "123", "username" : "user12", "address" : "abc", "number" : 928228828282.0, "task" : [{ "name" : "metac", "productCode" : "1234", "_id" : ObjectId("55e2acd77e5e4ddc037b3ef7") }, { "name" : "alfa33", "productCode" : "1234", "_id" : ObjectId("55e2acd77e5e4ddc037b3ef6") }], "__v" : 0 } so when I query for that it will return all task. curl -XPOST 'localhost:9200

Normalise MySQL fulltext score

我只是一个虾纸丫 提交于 2020-01-07 05:13:09
问题 I'm doing a pretty standard MySQL MATCH(...) AGAINST(...) query. I'm returning the score of each row as column score . The problem here is that score can be more than 1, so getting a percentage is tricky (multiplying by 100) due to the fact I can get scores greater than 1. My question is, can I normalise the score column so I get all scores from 0 to 1, but keep them in proportion (for example, a score of 4 would be 1, and a score of 2 would become 0.5, etc, but 4 can be a dynamic upper bound

Search on select_tag in rails?

白昼怎懂夜的黑 提交于 2020-01-06 13:29:55
问题 I have three models Lcities and lservices and search class Lcity < ActiveRecord::Base has_many :Lservices attr_accessible :lname , :lcode , :lexperience , :lrating , :llocation end and class Lservice < ActiveRecord::Base belongs_to :Lcity attr_accessible :lcode , :lscode , :lcharg , :lname end class Search < ActiveRecord::Base attr_accessible :city , :services end After submitting in Search form i want the all the lname from the Lcities model i know the sql query but how to apply on Rails

Sort by geo_distance where latitude and longitude given is 0.00 in ElasticSearch

做~自己de王妃 提交于 2020-01-06 11:57:37
问题 Here are two records: Ryan Restaurant: 'location' => [ 'lat' => 72.1909090, 'lon' =>19.123456], 'name' => Ryan Restaurant, 'type' => 'restaurant' Play Restaurant: 'location' => [ 'lat' => 72.1900010, 'lon' =>19.9645673], 'name' => Play Restaurant, 'type' => 'restaurant' Ashita Singh: 'location' => [ 'lat' => 0.0000000, 'lon' =>0.000000], 'name' => Ashita Singh, 'type' => 'homemade' How to display all the documents which have lat and long as 0.00 and documents which lie within 5km? Is it

Sort by geo_distance where latitude and longitude given is 0.00 in ElasticSearch

十年热恋 提交于 2020-01-06 11:55:27
问题 Here are two records: Ryan Restaurant: 'location' => [ 'lat' => 72.1909090, 'lon' =>19.123456], 'name' => Ryan Restaurant, 'type' => 'restaurant' Play Restaurant: 'location' => [ 'lat' => 72.1900010, 'lon' =>19.9645673], 'name' => Play Restaurant, 'type' => 'restaurant' Ashita Singh: 'location' => [ 'lat' => 0.0000000, 'lon' =>0.000000], 'name' => Ashita Singh, 'type' => 'homemade' How to display all the documents which have lat and long as 0.00 and documents which lie within 5km? Is it

Can ElasticSearch return relevant passages and not the entire document

混江龙づ霸主 提交于 2020-01-06 05:34:16
问题 I'm looking for a search engine that is able to return just relevant passages as a result and not the entire documents. Is ElasticSearch able to do this? 回答1: If you are looking to extract part of a long document, look at Highlighting. Specifically parameters like fragment_size (100 characters by default) or boundary_chars will help you to build that functionality. 来源: https://stackoverflow.com/questions/53904137/can-elasticsearch-return-relevant-passages-and-not-the-entire-document

mysql ft_min_word_len change on ubuntu does not work

最后都变了- 提交于 2020-01-06 03:12:05
问题 I am trying to implement the full test search. And for this the first thing I did change the value of ft_min_word_len = 2 on /etc/mysql/my.cnf as [mysqld] # # * Basic Settings # # # * IMPORTANT # If you make changes to these settings and your system uses apparmor, you may # also need to also adjust /etc/apparmor.d/usr.sbin.mysqld. # ft_min_word_len = 2 Now Saved that and restarted the server. I am aware that if I already have an index with FULLTEXT in a table I will need to drop the indexes

mysql ft_min_word_len change on ubuntu does not work

喜夏-厌秋 提交于 2020-01-06 03:11:59
问题 I am trying to implement the full test search. And for this the first thing I did change the value of ft_min_word_len = 2 on /etc/mysql/my.cnf as [mysqld] # # * Basic Settings # # # * IMPORTANT # If you make changes to these settings and your system uses apparmor, you may # also need to also adjust /etc/apparmor.d/usr.sbin.mysqld. # ft_min_word_len = 2 Now Saved that and restarted the server. I am aware that if I already have an index with FULLTEXT in a table I will need to drop the indexes