solr

Solrnet - Boost query with function

[亡魂溺海] 提交于 2019-12-12 18:48:50
问题 I am trying to query sol using solrnet. I am looking to boost the query by a record's property. My query then looks like this: /select?fl=QualityScore,score&q={!boost+b=sum(1,log(sum(1,QualityScore)))+v=$qq}&qq="qome query" Is there a way to do this using SolrNet? PS - I already looked at SolrNet queries with boost functions and I dont see the same result when I use 'bf'. 回答1: Mauricio's pointer is what helped me in this case. Local Params 来源: https://stackoverflow.com/questions/11453269

Is there a way to configuring Solr to run on Amazon S3 with the index files on S3 and not local storage?

主宰稳场 提交于 2019-12-12 18:06:43
问题 I would like to know if there is a way to configure Apache Solr to index files stored on S3 and also to keep the index files on S3 as well. I would like to have a load balanced (LD) scheme where multiple processors can share the master index. This would allow me to bring up additional EC2 instances with Solr and point them to a common repository and index. I am using PHP and would greatly appreciate any ideas or suggestions. Thanks. 回答1: As for indexing files stored in AWS S3 see here.

Solr stopwords showing up in facet search results

为君一笑 提交于 2019-12-12 17:33:19
问题 I am currently testing facet searches on a text field in my Solr schema and noticing that I am getting a significant number of results that are in my stopwords.txt file. My schema is currently using the default configuration for the text data type, and I was under the impression that stopwords were not indexed if the "solr.StopFilterFactory" filter was in use. I am hoping that someone can shed some light on this and either a) help me understand why stopwords don't apply to facets and how to

Solr - Collections API timeouts

怎甘沉沦 提交于 2019-12-12 16:01:19
问题 I've got a setup with 3x zoo keeper's and 4x solrcloud node's. This is all working, all nodes are seeing each other and I initially had a default collection. From there, I used the collections API to create a new collection which successfully completed and all it's successfully sharded across 2 nodes, with the other 2 being used for replica's. I can also successfully save documents to that collection. Browsing the solr web GUI on any of the boxes all works, no speed issues. However, anytime I

Hibernate Interceptor - after load event

╄→гoц情女王★ 提交于 2019-12-12 15:56:13
问题 Is there any event that occurs after an entity is loaded? My goal is to add this entity to a Solr or Lucene index. The EmptyInterceptor OnLoad event occurs BEFORE an object is initialized. I want to handle an event AFTER the object properties are set. Is it possible with Hibernate Interceptors or with something else? 回答1: @PostLoad seems to do the job (see community documentation). If you annotate a method with this inside your entity, it should be triggered after the entity has been loaded.

Don't split on underscore with solr.StandardTokenizerFactory

醉酒当歌 提交于 2019-12-12 15:20:27
问题 I'm using solr, I'm using StandardTokenizerFactory in the text field but I don't want to split on the underscore. Do I have to use another toknizer like PatternTokenizerFactory or I can do this with StandardTokenizerFactory ? as I need the same functionality of StandardTokenizerFactory but without split on underscore. 回答1: I don't think you can do it in StandardTokenizerFactory. One solution is to first replace underscores with something the StandardTokenizerFactory won't process and

solr fq syntax for an OR query

丶灬走出姿态 提交于 2019-12-12 15:20:00
问题 Just wondering what the correct syntax for an fq query would be... Is it, example #1: fq=(attr__sku__suitability__s:1-3yrs) OR (attr__sku__suitability__s:3-6yrs) OR (attr__sku__suitability__s:6-12yrs) OR (attr__sku__suitability__s:0-3mths) OR (attr__sku__suitability__s:3-12mths) Or, example #2 : fq=attr__sku__suitability__s:(1-3yrs OR 3-6yrs OR 6-12yrs OR 0-3mths OR 3-12mths) Or something else I've completely overlooked (url encoding has been left out to make it easier to read) 回答1: Both

SolR : More Like This on number fields

那年仲夏 提交于 2019-12-12 15:12:21
问题 I wonder if it is possible to configure mlt (more like this) to do the similarity on close numbers ? For example, a document with the field numberOfParticipant at 10, i would like to have some similar documents with numberOfParticipant between 5 and 15. Does this option exist ? 回答1: FunctionQuery may be your solution http://wiki.apache.org/solr/FunctionQuery . I never used it myself, but this must be reasonably easy to code something like this: 10-|10-X| where |x| is the absolute value of x

DoubleMetaphoneFilterFactory in Solr

佐手、 提交于 2019-12-12 14:51:33
问题 My purpose is to integrate solr so that the results returned from my application are accurate and fast. I am performing the search over name field using doublemetaphonic so that the names that sound similar are also captured then using the fuzzy search(That uses levenshtein distance algorithm) fetch the results above certain percentage.The problem is when I put the doublemetaphonic on the feild type name then I am unable to perform fuzzy search over that field. The example configuration from

How solr filters actually implemented?

◇◆丶佛笑我妖孽 提交于 2019-12-12 14:08:39
问题 Is my understanding of query processing correct? Get DocSet from cache or First filter query will create implementation of OpenBitSet or SortedVIntSet and cache it Get DocSet from cache or All other filters create their implementation of DocBitSet and it will be intersected with original ( efficiency of this code depends on implementation of first implementation of DocSet ) We do leapfrog with MainQuery and final DocSet(after all intersections) using Lucene filter+query search( efficiency of