Re: Merge Two Fields in SOLR

2015-04-07 Thread Damien Dykman
Ravi, what about using field aliasing at search time? Would that do the trick for your use case? http://localhost:8983/solr/mycollection/select?defType=edismaxq=name:john doef.name.qf=firstname surname For more details:

Retrieving list of words for highlighting

2015-03-25 Thread Damien Dykman
In Solr 5 (or 4), is there an easy way to retrieve the list of words to highlight? Use case: allow an external application to highlight the matching words of a matching document, rather than using the highlighted snippets returned by Solr. Thanks, Damien

Re: Solr 5.0.0 - Multiple instances sharing Solr server *read-only* dir

2015-03-10 Thread Damien Dykman
? There are sometimes very good reasons, just checking that you're not making things more difficult than necessary Best, Erick On Mon, Mar 9, 2015 at 4:59 PM, Damien Dykman damien.dyk...@gmail.com wrote: Hi all, Quoted from https://cwiki.apache.org/confluence/display/solr/Solr+Start

Solr 5.0.0 - Multiple instances sharing Solr server *read-only* dir

2015-03-09 Thread Damien Dykman
Hi all, Quoted from https://cwiki.apache.org/confluence/display/solr/Solr+Start+Script+Reference When running multiple instances of Solr on the same host, it is more common to use the same server directory for each instance and use a unique Solr home directory using the -s option. Is there a

/export - Why need sort criteria (4.10.2)?

2014-12-17 Thread Damien Dykman
The /export request handler mandates a sort order. Is there a particular reason? It'd be nice to have the option to tell Solr: just export in the order you want, to limit any kind of overhead added by sorting. Or am I missing something? If exports were distributed, I can see the need for some

Duplicate unique ID in implicit collection - Illegal?

2014-12-10 Thread Damien Dykman
Hi all, With an implicit collection, is it legal to index the same document (same unique ID) in 2 different shards? I know, it kind of defeats the purpose of having a unique ID... The reason I'm doing this, is because I want to move a single document from 1 shard to an other. During the

Re: Transparently rebalancing a Solr cluster without splitting or moving shards

2014-07-08 Thread Damien Dykman
Thanks for your suggestions and recommendations. If I understand correctly, the MIGRATE command does shard splitting (around the range of the split.key) and merging behind the scene. Though, it's a bit difficult to properly monitor the actual migration, set the proper timeouts, know when to

Transparently rebalancing a Solr cluster without splitting or moving shards

2014-07-07 Thread Damien Dykman
I have a cluster of N boxes/nodes and I'd like to add M boxes/nodes and rebalance data accordingly. Lets add the following constraints: - 1. boxes have different characteristics (RAM, CPU, disks) - 2. different number of shards per box/node (lets pretend we have found the sweet spot for

Re: Transparently rebalancing a Solr cluster without splitting or moving shards

2014-07-07 Thread Damien Dykman
(disabling MMAP?), given that it's not being used for search during the transition? That said, even if that was possible, both collections would compete for disk IOs. Thanks, Damien On 07/07/2014 12:26 PM, Shawn Heisey wrote: On 7/7/2014 12:41 PM, Damien Dykman wrote: I have a cluster of N boxes

Re: Adding router.field property to an existing collection.

2014-06-25 Thread Damien Dykman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Modassar, I ran into the same issue (Solr 4.8.1) with an existing collection set to implicit routing but with no router.field defined. I managed to set the router.field by modifying /clusterstate.json and pushing it back to Zookeeper. For

Atomic commit across shards?

2013-09-16 Thread Damien Dykman
Is a commit (hard or soft) atomic across shards? In other words, can I guaranty that any given search on a multi-shard collection will hit the same index generation of each shard? Thanks, Damien