Boosting on matching results

2018-04-20 Thread Ugo Matrangolo
Hi, is it possible to boost a document based on how many of the 'same kind' are in the current search result? An example: I'm looking at 'red dress' and this is the current situation on the facet counts: "facet_counts": { "facet_queries": {}, "facet_fields": { "sku_fashion":

Reading multi-valued fields in a Function Query

2018-04-16 Thread Ugo Matrangolo
Hi, I'm trying to write a function query that needs to stick a score [0..1] to each doc in the search results based on some logic applied to a multi-valued field in the document. This is an excerpt of the schema: And this is how it looks in a generic document on the index: "sku_store": [

NumericDocValues only supports long?

2017-02-14 Thread Ugo Matrangolo
Hi, I have a corpus where each document contains a field of type Float. I'm trying to write a PostFilter that returns a DelegatingCollector to filter all the docs where the value of a function applied to this float value is lower than a given threshold. I can't precompute/index anything here. I

Re: Upserting doc fields from a SearchComponent

2017-02-01 Thread Ugo Matrangolo
ses. > > Another is to keep the data in Solr somewhere and write a search component > that tacks this kind of clause on the incoming query. > > Best, > Erick > > On Wed, Feb 1, 2017 at 7:39 AM, Ugo Matrangolo <ugo.matrang...@gmail.com> > wrote: > > Hi, > &g

Re: Upserting doc fields from a SearchComponent

2017-02-01 Thread Ugo Matrangolo
s even if numFound is millions. > > Best, > Erick > > > > On Wed, Feb 1, 2017 at 7:04 AM, Ugo Matrangolo <ugo.matrang...@gmail.com> > wrote: > > Hi, > > > > I'm trying to write a SearchComponent that personalizes on the fly a > field > > on all the d

Upserting doc fields from a SearchComponent

2017-02-01 Thread Ugo Matrangolo
Hi, I'm trying to write a SearchComponent that personalizes on the fly a field on all the docs resulting from the initial search query. What I would like to do is to write a SearchComponent that intercepts the documents belonging to the result sets of a search query and upsert one or more of

Re: Results personaliazation

2017-01-31 Thread Ugo Matrangolo
s and a bunch of children records with 'local_pricing' > data. I realize that blows the records size up a lot, but if you don't > store much/anything in the child records, it may not be too bad. > > Hope this helps, >Alex. > > http://www.solr-start.com/ - Resources for S

Results personaliazation

2017-01-31 Thread Ugo Matrangolo
Hi I'm working on app where we use Solr for our search. Items out of the search have to be price personalized based on the country/ip/locale of the customer (e.g. configured currency in its settings + duties & VAT for his/her country). We also need to filter on a price range that has to take in

Fully automated replica creation in AWS

2015-12-09 Thread Ugo Matrangolo
Hi, I was trying to setup a SolrCloud cluster in AWS backed by an ASG (auto scaling group) serving a replicated collection. I have just came across a case when one of the Solr node became unresponsive with AWS killing it and spinning a new one. Unfortunately, this new Solr node did not join as a

Re: Taking Solr to production with docker

2015-09-24 Thread Ugo Matrangolo
run solr and have solr working! > > containers make new application deployments a breeze. > > On Wed, Sep 23, 2015 at 4:35 PM, Ugo Matrangolo <ugo.matrang...@gmail.com> > wrote: > > > Hi, > > > > just curious: what you get by running Solr into a Docker cont

Re: Taking Solr to production with docker

2015-09-23 Thread Ugo Matrangolo
Hi, just curious: what you get by running Solr into a Docker container ? Best Ugo On Wed, Sep 23, 2015 at 5:39 PM, Vincenzo D'Amore wrote: > Hi Doug, > > I have ported solrcloud to docker too, I hope you can found something > interesting here: > >

Re: Nno servers hosting shard.

2015-04-17 Thread Ugo Matrangolo
Hi, sounds like you hit a Full GC. Check your GC.log. Ugo On 17 Apr 2015 08:24, Modassar Ather modather1...@gmail.com wrote: Hi, Any suggestion will be really helpful. Kindly provide your inputs. Thanks, Modassar On Thu, Apr 16, 2015 at 4:27 PM, Modassar Ather modather1...@gmail.com

Re: leader split-brain at least once a day - need help

2015-01-07 Thread Ugo Matrangolo
Hi Thomas, I did not get these split brains (probably our use case is simpler) but we got the spammed Zk phenomenon. The easiest way to fix it is to: 1. Shut down all the Solr servers in the failing cluster 2. Connect to zk using its CLI 3. rmr overseer/queue 4. Restart Solr Think is way faster

After zk restart SOLR can't update its clusterstate.json

2014-08-28 Thread Ugo Matrangolo
Hi, just after we finished to restart our zk cluster SOLR started to fail with tons of zk events. We shut down all the nodes and restarted them one by one but looks like the clusterstate.json does not get updated properly. Example: core_node11 { state:active,

Re: After zk restart SOLR can't update its clusterstate.json

2014-08-28 Thread Ugo Matrangolo
Just adding some info: whan I do: curl -v 'http://10.140.3.25:9765/zookeeper?wt=json' it takes ages to come back and on the Admin UI I can't see the Cloud Graph. Ugo On Fri, Aug 29, 2014 at 12:52 AM, Ugo Matrangolo ugo.matrang...@gmail.com wrote: Hi, just after we finished to restart our

Re: Listening on SolrCloud events

2014-07-04 Thread Ugo Matrangolo
...@elyograg.org wrote: On 7/3/2014 7:49 AM, Ugo Matrangolo wrote: I would like to be informed as soon as a cluster event happens like a node dropping and/or starting a recovery process. What is the best way (if any) to listening on SolrCloud events ? I don't know how it's done, but if you

Listening on SolrCloud events

2014-07-03 Thread Ugo Matrangolo
Hi, I would like to be informed as soon as a cluster event happens like a node dropping and/or starting a recovery process. What is the best way (if any) to listening on SolrCloud events ? Ugo

Adding replicas to an existing SolrCLoud collection

2014-04-25 Thread Ugo Matrangolo
Hi, I have a running Solr 4.7.1 collection with a single shard replicated over 7 nodes. This collection has been created using a replicationFactor=7. The idea was to replicate it on all the available nodes (it is a high throughput collection). Recently I have added more nodes to house a

Re: Adding replicas to an existing SolrCLoud collection

2014-04-25 Thread Ugo Matrangolo
Yeah I could do that but I was hoping in something less hacky :p On Fri, Apr 25, 2014 at 3:08 PM, Shawn Heisey s...@elyograg.org wrote: On 4/25/2014 3:34 AM, Ugo Matrangolo wrote: I have a running Solr 4.7.1 collection with a single shard replicated over 7 nodes. This collection has been

Boosting vs. sorting

2014-04-09 Thread Ugo Matrangolo
Hi, we are using SOLR to power a sale listing page where each product has an availability and a position in the sale. We would like SOLR to partition the products based on their sold_out={true|false} state and to sort the two partitions by product position. We started with appending to the query

Re: Boosting vs. sorting

2014-04-09 Thread Ugo Matrangolo
at 9:32 AM, Ugo Matrangolo ugo.matrang...@gmail.com wrote: Hi, we are using SOLR to power a sale listing page where each product has an availability and a position in the sale. We would like SOLR to partition the products based on their sold_out={true|false} state and to sort the two

Re: Getting 500s on distributed queries with SolrCloud

2014-03-24 Thread Ugo Matrangolo
that is the problem here? I could find https://issues.apache.org/jira/browse/SOLR-4164 which says that once the sharding was fixed, the problem went away. We should come up with a better exception message though. On Fri, Mar 21, 2014 at 10:49 PM, Ugo Matrangolo ugo.matrang...@gmail.com wrote

Re: Bootstrapping SolrCloud cluster with multiple collections in differene sharding/replication setup

2014-03-21 Thread Ugo Matrangolo
, Erick On Thu, Mar 20, 2014 at 7:23 AM, Ugo Matrangolo ugo.matrang...@gmail.com wrote: Hi, I would like some advice about the best way to bootstrap from scratch a SolrCloud cluster housing at least two collections with different sharding/replication setup. Going through the docs

Getting 500s on distributed queries with SolrCloud

2014-03-21 Thread Ugo Matrangolo
Hi, I have a two shard collection running and I'm getting this error on each query: 2014-03-21 17:08:42,018 [qtp-75] ERROR org.apache.solr.servlet.SolrDispatchFilter - *null:java.lang.IllegalArgumentException: numHits must be 0; please use TotalHitCountCollector if you just need the total hit

Bootstrapping SolrCloud cluster with multiple collections in differene sharding/replication setup

2014-03-20 Thread Ugo Matrangolo
Hi, I would like some advice about the best way to bootstrap from scratch a SolrCloud cluster housing at least two collections with different sharding/replication setup. Going through the docs/'Solr In Action' book what I have sees so far is that there is a way to bootstrap a SolrCloud cluster

NumberFormatException while replicating an index with SolrCloud

2014-02-06 Thread Ugo Matrangolo
Hi, ran in a weird error while replicating the index using SolrCloud. On a 4.6.1 cluster the indexing replica process fails for most of the documents with an error like this (on the replica side): 2014-02-06 11:55:45,249 [qtp-75] DEBUG org.apache.solr.update.processor.LogUpdateProcessor -

Re: NumberFormatException while replicating an index with SolrCloud

2014-02-06 Thread Ugo Matrangolo
Hi, I have just found out what the problem was: Solr does not support non native types like BigDecimals. Moving my schema fields to plain float solved the problem. Regards, Ugo On Thu, Feb 6, 2014 at 12:32 PM, Ugo Matrangolo ugo.matrang...@gmail.comwrote: Hi, ran in a weird error while

UTF-8 encoding problems while replicating an index using SolrCloud

2014-02-05 Thread Ugo Matrangolo
Hi, we are having problems with an installation of SolrCloud where a leader node kicks off an indexing and tries to replicate all the updates using the UpdateHandler. What we get instead is an error around a wrong UTF-8 encoding from the leader trying to call the /udpate endpoint on the replica:

Loading resources from Zookeeper

2014-01-24 Thread Ugo Matrangolo
Hi, I'm in the process to move our organization search infrastructure to SOLR4/SolrCloud. One of the main point is to centralize our cores configuration in Zookeeper in order to roll out changes wout redeploying all the nodes in our cluster. Unfortunately I have some code (custom indexers

Loading resources from Zookeeper using SolrCloud API

2014-01-24 Thread Ugo Matrangolo
Hi, we have a quite large SOLR 3.6 installation and we are trying to update to 4.6.x. One of the main point in doing this is to get SolrCloud and centralized configuration using Zookeeper. Unfortunately, some custom code we have (custom indexer extending

Autocomplete terms from the middle of name/description of a Doc

2012-07-25 Thread Ugo Matrangolo
Hi, I'm working on making our autocomplete engine a bit more smart. The actual impl is a basic facet based autocompletion as described in the 'SOLR 3 Enterprise Search' book: we use all the typed tokens except the last one to build a facet.prefix query on an autocomplete facet field we built at

Re: Autocomplete terms from the middle of name/description of a Doc

2012-07-25 Thread Ugo Matrangolo
stored in that field. As product_tokens contains the value of product tokenized in a fashion that suites you, it can contain multiple tokens. facet.prefix on product_tokens will return hits that match *any* of these tokens - which is what you want. Chantal Am 25.07.2012 um 15:29 schrieb Ugo

Autocomplete using facets

2012-06-26 Thread Ugo Matrangolo
Hi, We are using SOLR to build a simple search engine on our e-commerce site. We also implemented an autocompletion feature using faceting following exactly what is described in the book 'Apache SOLR 3 Enterprise Search Server' (page 221). What we do is that we fill an autocomplete_facet with

Re: Autocomplete using facets

2012-06-26 Thread Ugo Matrangolo
? Or is this breaking your requirement? /Dmitry On Tue, Jun 26, 2012 at 5:08 PM, Ugo Matrangolo ugo.matrang...@gmail.com wrote: Hi, We are using SOLR to build a simple search engine on our e-commerce site. We also implemented an autocompletion feature using faceting following