solr

Solr stop words replaced with _ symbol

点点圈 提交于 2019-12-12 23:28:38
问题 I have problems with solr stopwords in my autosuggest. All stopwords was replaced by _ symbol. For example I have text "the simple text in" in field "deal_title". When I try to search word "simple" solr show me next result "_ simple text _" but I expect "simple text". Could someone explain me why this works in such way and how to fix it ? Here is part of my schema.xml <fieldType class="solr.TextField" name="text_auto"> <analyzer type="index"> <charFilter class="solr.HTMLStripCharFilterFactory

solr index nested document

こ雲淡風輕ζ 提交于 2019-12-12 23:18:27
问题 Does solr support nested documents? And is there a better way to achieve this sort of document? <doc> <field name="name">Mr. Test</field> <field name="case"> <field name="link">http://foo.com</field> <field name="date">1-2-1234</filed> <field name="title">My title</filed> </field> <field name="case"> <field name="link">http://foo.com/2/</field> <field name="date">1-2-1234</filed> <field name="title">My title 2</filed> </field> </doc> What I have is a person that has been part of multiple

Is it possible to force Riak 2.0 to re-index data after changing a schema, without reloading the data?

江枫思渺然 提交于 2019-12-12 23:16:00
问题 I have a Riak Search index of about 5 million docs that I would like to experiment with making changes to the schema. Is it possible to have Riak re-index that data without having to insert those documents again? Does this happen automatically when the schema is changed? I could not find information about this in the docs. Thanks for any help with this! 回答1: Right now the only way to re-index the objects is to iterate over each of the keys and update the object to trigger an update to the

How to get last Document insert in Solr?

烂漫一生 提交于 2019-12-12 22:58:01
问题 My Problem is.. when I want to get last Document ID in Solr I get 99999999 and last Id = 246458031 I try this How to get last indexed record in Solr? and only work if last ID <= 99999999 2.and when I use timestamp many record have the same date [timestamp": "2017-08-14T08:51:21.185Z] So I need way to get Last Id from Solr EDIT I found Solution [ q=*:*&start=0&rows=1&sort=timestamp+desc,id+desc ] I Sorted by time & ID and it's working So Good 回答1: I found Solution [q= : &start=0&rows=1&sort

Zookeeper multiple collection different schema

懵懂的女人 提交于 2019-12-12 20:17:42
问题 I have a zookeeper instance (Solr integrated version) with 3 collections. Each collection has a different schema.xml in it's conf directory. Zookeeper starts sucessfully - the goal is to do a distributed search across the different collections. My problem is that when I look at the schema of collection2 and collection3 via the admin tool they both appear to be using collection1 schema. So I cannot update collections 2 & 3 as they are missing their correct fields. I have tried each of the

How to add Hybris Solr By for Boolean value

我的未来我决定 提交于 2019-12-12 20:17:08
问题 I have a Solr indexed property called isNewProduct (boolean) and I want to create a new Solr By option for this attribute. (the products with isNewProduct==true must appear first). Any hint about how can I achieve this ? 回答1: All you have to do is run below Impex (change it with your actual values) and you are done. $lang=en $solrIndexedType=YourProductType INSERT_UPDATE SolrSort ; indexedType(identifier)[unique=true] ; code[unique=true] ; name[lang=$lang] ; useBoost ; $solrIndexedType ;

Solr highlighting every word individually for a phrase query

非 Y 不嫁゛ 提交于 2019-12-12 20:05:24
问题 Say I have a field in Solr which has the value, "The rain in Spain falls mainly in the plain." And I want a highlighted result for the phrase, "falls mainly". I pass these parameters to the select... <lst name="params"> <str name="hl.fragsize">-1</str> <str name="q">"falls mainly"</str> <str name="hl.q">"falls mainly"</str> <str name="hl.simple.pre">@@pre@@</str> <str name="hl.simple.post">@@post@@</str> <str name="hl.fl">note</str> <str name="hl.maxAnalyzedChars">-1</str> <str name="hl">true

SOLR - Can I get Parent fields and Child fields in the same result?

▼魔方 西西 提交于 2019-12-12 19:23:39
问题 I'm using SOLR 4.6 with Parent and Child documents. I know that I can use 'join' or 'block join' to find documents of specific type (Child or Parent), But, can I get Parent doc fields and Child doc fields in the same response? For Example: If I have Person with firstName=Bob and LastName=Marley And Child doc Address with City=NY I would like to get firstName=Bob , LastName=Marley and City=NY in the result document. 回答1: Try Index time Block join with parent child relations and use the expand

Sitecore GetQueryable Filter not returning any result for SOLR after switch from Lucene

丶灬走出姿态 提交于 2019-12-12 19:23:25
问题 I'm in process of switching the Sitecore Lucene Search provider to Solr. Cores have been configured and I can rebuild all the COREs with no problem. I also updated the computed index fields per Solr mapping requirements. However, for weird reason the query below isn't returning any results. using (var context = index.CreateSearchContext(SearchSecurityOptions.DisableSecurityCheck)) { var query = context.GetQueryable<ArticleSearchResultItem>().Filter(item => item.Category == categoryId); var

利用UK8S落地微服务,加速元年科技业务迭代

非 Y 不嫁゛ 提交于 2019-12-12 19:12:28
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> “使用UK8S,开发者可以像使用普通云服务器一样迅速搭建K8S环境。在享受K8S带来的便利的同时,能够让开发人员集中注意力在业务实现的细节,而不必在基础架构搭建上浪费太多的精力。UCloud为此提供的专业、快速的服务和响应机制帮助我们成功的将整个环境从自建K8S平滑迁移到UK8S。UCloud的UK8S如同其它的基础服务一样稳定,使我们相信‘让专业的人做专业的事’,选择UCloud作为我们的云服务提供商是我们在技术选型上做出的正确选择之一。” —元年科技CTO 杨熠 写在开始 本文主要介绍UK8S在公有云场景中的实践案例,后续即将推出在混合云模式下的案例分享。 元年科技业务使用UK8S的效果 业务上引入UK8S落地微服务,目的并非是节约云主机资源,而是节省人工成本,使得开发人员可更专注于业务实现;可降低系统耦合度、研发难度,从而更高效合理的调度主机集群资源;提高团队整体交付效率,实现时间成本的节约,最终转化为业务迭代的加速。 关于元年科技 自2000年成立起,一直专注于以管理会计为核心的管理咨询和管理信息化领域,致力于成为“中国管理会计领航者”,帮助中国企业实现财务转型和管理精细化。 元年科技的专业服务和软件平台涵盖企业运营以及管理的四个层面:以管理会计为核心,支持企业分析模拟、决策支持和管理控制