solr

Socket hangup while posting request to Node-http-proxy Node.js

跟風遠走 提交于 2019-12-18 03:09:32
问题 I'm working in Node.js Project and I want node to act as a proxy for solr For proxy: I used Node-http-proxy. the problem is that proxy work excellent in case of get requests but in case of post requests it results in socket hang up exception Here is a sample of my node code var express = require('express'); var router = express.Router(); var http = require('http'); var httpProxy = require('http-proxy') var proxyOptions = { host: "127.0.0.1", port: 8983 }; var proxy = httpProxy

How to Install Solr in Tomcat?

蓝咒 提交于 2019-12-18 03:00:31
问题 I've put the file apache-solr-3.5.0.war in folder C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps . A folder "apache-solr-3.5.0" is created automatically. And when I go to: http://localhost:8080/apache-solr-3.5.0/ . I can see the message "Welcome to Solr!". Now, when I do the exact same with the file solr-4.3.1.war in the folder C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps A folder solr-4.3.1 is created automatically. But now when I go to: http://localhost

Tomcat SOLR multiple cores setup

末鹿安然 提交于 2019-12-17 23:44:41
问题 I have spend all morning trying to set up multiple cores on a SOLR installation that runs under Apache Tomcat server without success. My solr.xml looks like this: <solr persistent="false" sharedLib="lib"> <cores adminPath="/admin/cores"> <core name="core0" instanceDir="/multicore/core0"> <property name="dataDir" value="/multicore/core0/data" /> </core> <core name="core1" instanceDir="/multicore/core1"> <property name="dataDir" value="/multicore/core1/data" /> </core> </cores> </solr> What is

Scoring of solr multivalued field

血红的双手。 提交于 2019-12-17 23:26:11
问题 If I have a document with a multivalued field in Solr are the multiple values scored independently or just concatenated and scored as one big field? I'm hoping they're scored independently. Here's an example of what I mean: I have a document with a field for a person's name, where there may be multiple names for the same person. The names are all different (very different in some cases) but they all are the same person/document. Person 1: David Bowie, David Robert Jones, Ziggy Stardust, Thin

Query multiple collections with different fields in solr

痴心易碎 提交于 2019-12-17 23:05:36
问题 Given the following (single core) query's: http://localhost/solr/a/select?indent=true&q=*:*&rows=100&start=0&wt=json http://localhost/solr/b/select?indent=true&q=*:*&rows=100&start=0&wt=json The first query returns "numFound":40000" The second query returns "numFound":10000" I tried putting these together by: http://localhost/solr/a/select?indent=true&shards=localhost/solr/a,localhost/solr/b&q=*:*&rows=100&start=0&wt=json Now I get "numFound":50000". The only problem is "a" has more columns

Retrieving specific fields in a Solr query?

白昼怎懂夜的黑 提交于 2019-12-17 22:35:46
问题 I am running a Solr instance on Jetty and when I search using the Solr admin panel, it returns the entire document. What should I do to get only specified fields from each Solr document returned by the search? 回答1: /?q=query&fl=field1,field2,field3 回答2: From the Solr Admin home page, click on "Full Interface". On that page there is a box called "Fields to Return". You can list the you want here (comma-separated). "*" means all fields. 回答3: http://xx.xxx.xx.xx:8983/solr/corename/select?indent

一步一步学solr:tomcat7+solr4.9环境搭建

↘锁芯ラ 提交于 2019-12-17 22:20:34
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> solr下载地址: http://www.apache.org/dyn/closer.cgi/lucene/solr/4.9.0 tomcat下载地址: http://tomcat.apache.org/download-70.cgi 首先 将下载好的2个包解压,我在E:/test文件夹 一个空的tomcat 找到你解压好的solr4.9.0目录, 将E:\solr-4.9.0\example\webapps的 solr.war 拷贝到E:\test\tomcat7\webapps下 然后启动tomcat,这时候会报错,我们的目的是吧solr.war解压出来,等tomcat启动完成后关闭它。 建立一个solr_home,他不是我们解压出来的solr4.9.0,因为暂时用不到那么多的对象,solr_home我创建在E:\test\solr_home文件夹。将E:\solr-4.9.0\example\solr文件夹下的所有文件复制到 E:\test\solr_home里。 配置tomcat中的项目找到solr_home,这里有很多种配置,我的方法是修改E:\test\tomcat7\webapps\solr\WEB-INF下的web.xml。 将 <env-entry> <env-entry-name>solr

Rails app: Solr throwing RSolr::Error::Http - 404 Not Found when executing search

戏子无情 提交于 2019-12-17 22:18:55
问题 Very lost as I haven't made any changes to my search which has always been working but somehow I've got a break. Being relatively new to Rails, the error output isn't giving me enough detail to debug. Relevant code below - ask if you want to see anything else. home.html.slim (excerpt with search form) = form_tag search_venues_path, method: :get, id: 'search' do |f| .search-fields.span16 p = text_field_tag :q, '', placeholder: "Search for coffee, hotel, etc", class: 'span7 search-field' p =

企业级搜索应用服务器solr介绍

我与影子孤独终老i 提交于 2019-12-17 22:17:54
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 简介 Solr是一个独立的 企业级搜索 应用服务器,它对外提供类似于Web-service的API接口。用户可以通过http请求,向搜索引擎服务器提交一定格式的XML文件,生成索引;也可以通过Http G et操作提出查找请求,并得到XML格式的返回结果; 特点 Solr是一个独立的企业搜索服务器REST-like API。 你把文件(称为“索引”) 通过XML、JSON、CSV通过HTTP或二进制。 你查询它通过HTTP GET和接收XML、JSON、CSV或二进制的结果。 高级全文搜索功能 优化了高容量的网络流量 基于标准的开放接口——XML、JSON和HTTP 综合HTML管理接口 服务器统计数据暴露在JMX监控 线性可伸缩、自动索引复制,自动故障转移和恢复 接近实时索引 灵活和适应性强的XML配置 可扩展的插件体系结构 Solr使用Lucene TM 搜索库和扩展了它! 真正的数据模式,数值类型、动态字段,独特的钥匙 强大的扩展Lucene查询语言 面向方面的搜索和过滤 地理空间搜索支持多个分文档和geo多边形 先进、可配置的文本分析 高度可配置和用户可扩展的缓存 性能优化 外部配置通过XML 一个基于AJAX的管理界面 可监控日志 快接近实时增量索引和索引复制 高度可伸缩的分布式搜索分散指数跨多个主机