solr

Understading Solr nested queries

試著忘記壹切 提交于 2019-12-20 04:14:40
问题 I'm trying to understand solr nested queries but I'm having a problem undestading the syntax. I have the following two indexed documents (among others): <doc> <str name="city">Guarulhos</str> <str name="name">Fulano Silva</str> </doc> <doc> <str name="city">Fortaleza</str> <str name="name">Fulano Cardoso Silva</str> </doc> If I query for q="Fulano Silva"~2&defType=edismax&qf=name&fl=score I have: <doc> <float name="score">28.038431</float> <str name="city">Guarulhos</str> <str name="name"

Create indexes in solr on top of HBase

旧街凉风 提交于 2019-12-20 03:28:14
问题 Is there anyway in which I can create indexes in Solr to perform full-text search from HBase for Near Real Time. I didn't wanted to store the whole text in my solr indexes. Made "stored=false" Note: - Keeping in mind, I am working on large datasets and want to do Near Real Time search. WE are talking TB/PB of data. UPDATED Cloudera Distribution : 5.4.x is used with Cloudera Search components. Solr : 4.10.x HBase : 1.0.x Indexer Service : Lily HBase Indexer with cloudera morphlines Is there

DSE Solr nodes and vnodes

白昼怎懂夜的黑 提交于 2019-12-20 03:13:10
问题 The following documentation pages say that it is not recommended to use vnodes for Solr/Hadoop nodes: http://www.datastax.com/documentation/datastax_enterprise/4.0/datastax_enterprise/srch/srchIntro.html http://www.datastax.com/documentation/datastax_enterprise/4.0/datastax_enterprise/deploy/deployConfigRep.html#configReplication What is the exact problem with using vnodes for these node types? I inherited a DSE setup wherein the Search nodes all use vnodes, and I wonder if I should take down

How do I see SOLR dynamic fields in CQL with Cassandra?

不羁的心 提交于 2019-12-20 03:08:25
问题 Solr dynamic fields appear as searchable in Solr and available in the Thrift interface, but when using CQL, the fields don't appear. Is there a specific search style or querying style that can be used to expose what the dynamic fields are and their values? 回答1: Through CQL3 Dynamic fields should work as well with a few caveats. You need to declare the type as a map (eg: dyn_ map) and create the CQL schema. Post your schema with the dynamic type declared. The dynamic part isn't inferred inside

Implementing Tagging and Excluding Filters with Solrj / Spring Data Solr

倖福魔咒の 提交于 2019-12-20 02:34:54
问题 I am trying to implement a Solr Facet search with multi-select on a field. To take this example: http://docs.lucidworks.com/display/solr/Faceting#Faceting-LocalParametersforFaceting, I would like to generate this call to solr: q=mainquery&fq=status:public&fq={!tag=dt}doctype:pdf&facet=on&facet.field={!ex=dt}doctype I am not sure how to call this using solrj (java) as I don't want to add a simple filed but I need to include the tagging and excluding (!tag=dt and !ex=dt). Any ideas what the

Solr requests time out during index update. Perhaps replication a possible solution?

主宰稳场 提交于 2019-12-20 02:32:41
问题 We are running a Solr installation (everything standard jetty environment, just added some fields to schema). The index is about 80k Documents that are of average size (probably 20 fields with about 100 characters each). The problem is that from time to time some requests time out. Well they dont time out server side but they take longer than 10 seconds which is when our application considers it as a time out. They are very simple queries that usually dont take longer than 80 ms or something.

solr创建core

荒凉一梦 提交于 2019-12-20 02:07:15
创建Core的两种方法: 第一种方法: 1、打开dos命令窗口,切换目录到${solr.home}\bin,然后输入:solr create -c corename之后回车; 2、打开solr安装文件,在/server/solr下就会出现新的文件夹corename(就是新创建的core); 3、打开浏览器,输入solr访问路径: http://localhost:8983/solr ,就会看到新建的core 第二种方法: 1、直接在/server/solr下创建新文件夹,名字自定义,此处命名为newcore,作为新建的core; 2、找到/server/solr/configsets/_default目录下的conf文件夹,然后拷贝一份到/server/solr/newcore目录节点下。 3、然后按照下图操作: 来源: https://www.cnblogs.com/zjm-1/p/9172799.html

Solr conditional adds/updates?

 ̄綄美尐妖づ 提交于 2019-12-20 01:06:02
问题 I have a fairly simple need to do a conditional update in Solr, which is easily accomplished in MySQL. For example, I have 100 documents with a unique field called <id> I am POSTing 10 documents, some of which may be duplicate <id> s, in which case Solr would update the existing records with the same <id> s I have a field called <dateCreated> and I would like to only update a <doc> if the new <dateCreated> is greated than the old <dateCreated> (this applies to duplicate <id> s only, of course

Using Solr and Zends Lucene port together

﹥>﹥吖頭↗ 提交于 2019-12-19 21:18:40
问题 Afternoon chaps, After my adventures with Zend-Lucene-Search, and discovering it isn't all its cracked up to be when indexing large datasets, I've turned to Solr (thanks to Bill Karwin for that :) ) I've got Solr indexing the db far far quicker now, taking just over 8 minutes to index a table of just over 1.7million rows - which I'm very pleased with. However, when I come to try and search the index with the Zend port, I run into the following error; Fatal error: Uncaught exception 'Zend

Adding Boost to Score According to Payload of Multivalued Field at Solr

混江龙づ霸主 提交于 2019-12-19 19:53:17
问题 Here is my case; I have a field at my schema named elmo_field . I want that elmo_field should have payloaded values. i.e. dorothy|0.46 sesame|0.37 big bird|0.19 bird|0.22 When a user searches for a keyword i.e. dorothy I want to add 0.46 to usual score. If user searches for big bird , 0.19 should be added and if user searches for bird , 0.22 should be added (payloads are added - or payloads * normalize coefficient will be added). I mean I will make a search on my index at my other fields of