Elastic

Sphinx/Solr/Lucene/Elastic Relevancy

匿名 (未验证) 提交于 2019-12-03 08:30:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We have an extremely large database of 30+ Million products, and need to query them to create search results and ad displays thousands of times a second. We have been looking into Sphinx, Solr, Lucene, and Elastic as options to perform these constant massive searches. Here's what we need to do. Take keywords and run them through the database to find products that match the closest. We're going to be using our OWN algorithm to decide which products are most related to target our advertisements, but we know that these engines already have

elastic search 5.5 highlight field is not working

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have tested the elastic search highlight field function and it was working fine . I used elastic search 2.4.4 and spring-data-elasticsearch-2.0.0.RELEASE The sample code is in the below post How to provide highlighting with Spring data elasticsearch I have recently upgraded to elastic search to 5.5.0 and spring-data-elasticsearch-3.0.0.M4 when I test the same code , highlight does not happen Below is the sample code SearchQuery searchQuery = new NativeSearchQueryBuilder().withIndices("occindex") .withPageable(new PageRequest(0,

安装Elasticsearch-Apm

有些话、适合烂在心里 提交于 2019-12-03 04:27:25
概述 Elastic APM是一个基于Elastic Stack构建的应用程序性能监控系统。它允许您实时监控软件服务和应用程序,收集有关传入请求的响应时间,数据库查询,高速缓存调用,外部HTTP请求等的详细性能信息。这样可以更轻松地快速查明并修复性能问题。 弹性APM还会自动收集未处理的错误和异常。错误主要基于堆栈跟踪进行分组,因此您可以识别出现的新错误,并密切关注特定错误发生的次数。 APM 组件 弹性APM包含四个组件: APM代理 是使用与服务相同的语言编写的开源库。您可以像安装任何其他库一样将它们安装到服务中。他们检测您的代码并在运行时收集性能数据和错误。此数据缓冲一小段时间并发送到APM服务器。 APM Server 是一个用Go编写的开源应用程序,通常在专用服务器上运行。它默认侦听端口8200,并通过JSON HTTP API从代理接收数据。然后,它根据该数据创建文档并将其存储在Elasticsearch中。 Elasticsearch 是一个高度可扩展的开源全文搜索和分析引擎。它允许您快速,近实时地存储,搜索和分析大量数据。Elasticsearch用于存储APM性能指标并利用其聚合。 Kibana 是一个开源分析和可视化平台,旨在与Elasticsearch协同工作。您使用Kibana搜索,查看和与Elasticsearch中存储的数据进行交互

Cassandra Datastax Enterprise using Amazon Elastic IP

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to run Cassandra Datastax Enterprise on Amazon EC2 instances using not the node private IP address but Elastic Public IPs My current configuration looks as follows: /etc/dse/cassandra/cassandra.yaml seed_provider: - class_name: org.apache.cassandra.locator.SimpleSeedProvider parameters: seeds: "publicIP" listen_address: "publicIP" endpoint_snitch:Ec2Snitch rpc_address: "publicIP" The "dse" service is not starting properly. /var/log/cassandra/system.log is showing the following error: org.apache.cassandra.exceptions

Elastic Search: Difference between “Term”, “Match Phrase”, and “Query String”

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: New here to elastic search and trying to get a better understanding on the difference between these queries. As far as I can tell, term matchings a single term (needs to be lowercase for the match to work?), and both match phrase and query string matches a string of text. 回答1: term query matches a single term as it is : the value is not analyzed . So, it doesn't have to be lowercased depending on what you have indexed. If you provided Bennett at index time and the value is not analyzed, the following query won't return anything : {

Can we add more Amazon Elastic Mapreduce instances into an existing Amazon Elastic Mapreduce instances?

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am new to Amazon Services and facing some issues. Suppose I am running some Job Flow on Amazon Elastic Mapreduce with total 3 instances. While running my job flow on it I found that my job is taking more time to execute. And in such case I need to add more instances into it so that my instances will increase and hence job will execute fast. My question is that How to add such instance into an existing instances? Because If we terminate existed instance and again create the new instances with more number is time consuming. Is there anyway

How to get Elastic Beanstalk nginx-backed proxy server to auto-redirect from HTTP to HTTPS?

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've got a Node.js powered site that I'm running on Amazon Elastic Beanstalk. My Node.js app listens on port 8080, and I'm using the nginx elastic load balancer configuration with my EB app, listening on port 80 and 443 for HTTP and HTTPS. However, I only want to accept traffic in my app that has come via HTTPS. I could rig something up in the app to deal with this, but am interested in a way to get the load balancer to redirect all HTTP requests to my site via HTTPS. 回答1: After several false-starts with ideas from Amazon's paid support,

Cant install sense plugin for Kibana

匿名 (未验证) 提交于 2019-12-03 02:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to install sense plugin for elasticsearch/kibana. I have successfully installed Kibana but when following the instruction on https://www.elastic.co/guide/en/sense/current/installing.html I type : ./kibana plugin --install elastic/sense , on the bin directory inside kibana folder, and I get : ERROR unknown command plugin Usage : bin / kibana [ command = serve ] [ options ] Kibana is an open source ( Apache Licensed ), browser based analytics and search dashboard for Elasticsearch . Commands : serve [ options ] Run the

nginx error: (99: Cannot assign requested address)

匿名 (未验证) 提交于 2019-12-03 02:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am running Ubuntu Hardy 8.04 and nginx 0.7.65, and when I try starting my nginx server: $ sudo /etc/init.d/nginx start I get the following error: Starting nginx: [emerg]: bind() to IP failed (99: Cannot assign requested address) where "IP" is a placeholder for my IP address. Does anybody know why that error might be happening? This is running on EC2. My nginx.conf file looks like this: user www-data www-data; worker_processes 4; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; access_log

Elastic Beanstalk Single Container Docker - use awslogs logging driver

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm running a single Docker container on Elastic Beanstalk using its Single Container Docker Configuration , and trying to send the application stdout to CloudWatch using the awslogs logging driver . EB looks for a Dockerrun.aws.json file for the configuration of the container, but as far as I can see doesn't have an option to use awslogs as the container's logging driver (or add any other flags to the docker run command for that matter). I've tried hacking into the docker run command using the answer provided here , by adding a file