Re: Accessing a specific solr collection from custom searchHandler

2018-03-05 Thread Gintautas Sulskus
ly Detection > Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > > > > > On 5 Mar 2018, at 13:07, Gintautas Sulskus <gintautas.suls...@gmail.com> > wrote: > > > > I would like to write a searchHandler for complex cross-coll

Re: Accessing a specific solr collection from custom searchHandler

2018-03-05 Thread Gintautas Sulskus
I would like to write a searchHandler for complex cross-collection queries. On Mon, Mar 5, 2018 at 12:05 PM, Gintautas Sulskus < gintautas.suls...@gmail.com> wrote: > Hi, > > How do I access a different collection from a custom searchHandler? > Is there any documentation on cus

Accessing a specific solr collection from custom searchHandler

2018-03-05 Thread Gintautas Sulskus
Hi, How do I access a different collection from a custom searchHandler? Is there any documentation on custom component (e.g. searchHandler) development? Regards, Gintas

Re: LTR and 'searching' a streaming expression result

2018-02-26 Thread Gintautas Sulskus
se requirements will not work with ltr. > > The search expression though could be used with ltr and the fetch > expression, which doesn't require full export or a specific sort order. > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Fri, Feb 23, 2018 at 5:54 A

LTR and 'searching' a streaming expression result

2018-02-23 Thread Gintautas Sulskus
Hi, Is it possible to apply another search to a streaming expression result? E.g. to use leftOuterJoin as a source for search: search( leftOuterJoin( leftOuterJoin(search(), search()) leftOuterJoin(..) ), q=... ) Is it possible to apply LTR to the streaming

Re: using gatherNodes to produce 'to' -> 'from' pairs

2018-02-05 Thread Gintautas Sulskus
more fields if needed in a secondary call. > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Sun, Feb 4, 2018 at 3:12 PM, Gintautas Sulskus < > gintautas.suls...@gmail.com> wrote: > > > Hi, > > > > By default, gatherNodes returns only a set of 'to' n

using gatherNodes to produce 'to' -> 'from' pairs

2018-02-04 Thread Gintautas Sulskus
Hi, By default, gatherNodes returns only a set of 'to' nodes. Is there a neat way to return a set of all maplets 'from' -> 'to'? Thanks, Gin

Re: Nesting decorators in streaming expressions

2018-02-04 Thread Gintautas Sulskus
ght. I would build > up the expression one piece at a time and make sure each layer is working > before moving on to the next. > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Sat, Feb 3, 2018 at 7:50 AM, Gintautas Sulskus < > gintautas.suls...@gmail.com> wrot

Nesting decorators in streaming expressions

2018-02-03 Thread Gintautas Sulskus
Hi, Is it possible to use decorator's output as a data source for another decorator? My attempts to achieve this were throwing errors hence the question. For instance, is it possible to have something like this? gatherNodes( leftOuterJoin( leftOuterJoin(search(), search())

Re: Computing record score depending on its association with other records

2018-01-31 Thread Gintautas Sulskus
Yes, that is correct. Collection 'features' stores mapping between features and their scores. For simplicity, I tried to keep the level of detail about these collections to a minimum. Both collections contain thousands of records and are updated by (lily) hbase-indexer. Therefore storing

Re: Computing record score depending on its association with other records

2018-01-30 Thread Gintautas Sulskus
Thanks, Alessandro, for your reply. Indeed, LTR looks like what I need. However, all of the LRT examples that I have found use a single collection as a data source. My data spans across two collections. Does LTR support this somehow or should I 'denormalise' the data and merge both collections?

Computing record score depending on its association with other records

2018-01-30 Thread Gintautas Sulskus
Hi, I have two collections. The first collection 'items' stores associations between items and their features. The second collection 'features' stores importance score for each feature. items: item_id- one-to-many - feature_id features: feature_id - one-to-one - importance_score_int The

Merging fields of two streaming expressions

2018-01-29 Thread Gintautas Sulskus
Hi, Is it possible to merge fields of two stream sources in a specific way? Take for example two search result sets: search_1(... fl="score") search_2(... fl="score") I would like to merge these two into one result set. Its score would be computed using a custom function f(x,y) that takes take

Re: Exact match works only for some of the strings

2017-03-17 Thread Gintautas Sulskus
s hardly compatible with KeywordTokenizer. Also you can check > > which terms are indexed in SchemaBrowser. Also, there is Analysis page at > > Solr Admin. > > > > On Thu, Mar 16, 2017 at 8:55 PM, Gintautas Sulskus < > > gintautas.suls...@gmail.com>

Exact match works only for some of the strings

2017-03-16 Thread Gintautas Sulskus
Hi All, I am trying to figure out why Solr returns an empty result when searching for the following query: nameExact:"Guardian EU-referendum" The field definition: The type definition: The analysis, as expected, matches the query parameter against the stored value. Please take

Load solr libraries from hdfs

2016-12-05 Thread Gintautas Sulskus
Hi, Is it possible to add libraries to solr classpath from hdfs? E.g. ? I have some custom libraries that now have to be maintained across multiple servers. Would be great to be able to store them in a single location. Best, Gin

Re: Filtering a field when some of the documents don't have the value

2016-11-15 Thread Gintautas Sulskus
Thanks Erick, it works exactly as required! Gintas On Mon, Nov 14, 2016 at 7:02 PM, Erick Erickson <erickerick...@gmail.com> wrote: > You want something like: > name:x=population:[10 TO *] OR (*:* -population:*:*) > > Best, > Erick > > On Mon, Nov 14, 2016 at

Filtering a field when some of the documents don't have the value

2016-11-14 Thread Gintautas Sulskus
Hi, I have an index with two fields "name" and "population". Some of the documents have the "population" field empty. I would like to search for a value X in field "name" with the following condition: 1. if the field is empty - return results for name:X 2. else set the minimum value for the

Re: Local parameter query and multiple fields

2016-11-04 Thread Gintautas Sulskus
To add: I am passing parameter defType=edismax. On Fri, Nov 4, 2016 at 11:41 AM, Gintautas Sulskus < gintautas.suls...@gmail.com> wrote: > Hi, > > If I search for "London" with the following query, I get London city at > the top. > > name:London^10 > cate

Local parameter query and multiple fields

2016-11-04 Thread Gintautas Sulskus
Hi, If I search for "London" with the following query, I get London city at the top. name:London^10 category:City^5 category:Organization^1 Now I would like to store this query in SearchHandler with a parameter $term instead of the hard-coded word "London". However, I am not sure how the query

Re: Getting NullPointerException in an attempt to boost query result by date

2016-11-01 Thread Gintautas Sulskus
My bad. Thanks, Erik. Gin Best Wishes, Gintautas Sulskus On Tue, Nov 1, 2016 at 3:26 PM, Erik Hatcher <erik.hatc...@gmail.com> wrote: > Now you're asking a dismax parser question. dismax does not support * or > *:* directly, but rather in q.alt if the query is empty. > >

Re: Getting NullPointerException in an attempt to boost query result by date

2016-11-01 Thread Gintautas Sulskus
handler or as explicit params is up > to you, and keeping everything (but `term`) in the request handler > definition would be the cleanest client request way to go, as you’re doing. > > Erik > > > > On Oct 31, 2016, at 4:19 PM, Gintautas Sulskus < > gintautas.

Re: Getting NullPointerException in an attempt to boost query result by date

2016-11-01 Thread Gintautas Sulskus
e following url: > > > > /solr/core/testSearch?term=apple > > > > The handler works if I comment out the date-boost line: > > "{!boost b=recip(ms(NOW/HOUR, submit_date),3.16e-11,1,1)}" > > > > Gin > > > > > > On Mon, Oct 31, 201

Re: Getting NullPointerException in an attempt to boost query result by date

2016-10-31 Thread Gintautas Sulskus
if I comment out the date-boost line: "{!boost b=recip(ms(NOW/HOUR, submit_date),3.16e-11,1,1)}" Gin Best Wishes, Gintautas Sulskus On Mon, Oct 31, 2016 at 6:15 PM, Erik Hatcher <erik.hatc...@gmail.com> wrote: > how’d you set “$term” - the correct way would be =apple on

Getting NullPointerException in an attempt to boost query result by date

2016-10-31 Thread Gintautas Sulskus
Hi, I am trying to construct a timestamp-boosted query comprising two weighted fields: "title" and "body": {!boost b=recip(ms(NOW/HOUR,submit_date),3.16e-11,1,1)} {!type=dismax qf='title^10 body^1' v=$term} $term=apple I expect the given example query provided above to search fields "title"