Re: Query in a doc context

2017-12-31 Thread Vadim Gindin
Thanks Mikhail! I'll look there. Happy new year ) Regards Vadim Gindin 31 дек. 2017 г. 2:21 пользователь "Mikhail Khludnev" написал: > Literally it's done in Solr (excuse moi) via > q=field1:(foo bar baz)^=3 field2:(foo bar baz)^=4 field3:(foo bar baz)^=5 > but it's absolutely wrong way to ap

Re: Query in a doc context

2017-12-30 Thread Mikhail Khludnev
Literally it's done in Solr (excuse moi) via q=field1:(foo bar baz)^=3 field2:(foo bar baz)^=4 field3:(foo bar baz)^=5 but it's absolutely wrong way to approach the problem, you can find dismax and white elephant problem in the Relevant Search by Mr Turnbull On Tue, Dec 26, 2017 at 10:01 PM, Vadi

Re: Query in a doc context

2017-12-26 Thread Vadim Gindin
Mike, I need the following. I want to create a query using the following information: query string "blah blah blah" and constant scores map: "field1" -> 3.0 "field2" -> 4.0 "field3" -> 5.0 // field1, field2, field3 - fields in the index. The created query should search "blah blah blah" in each

Re: Query in a doc context

2017-12-15 Thread Mike Dinescu (DNQ)
Got it. I misunderstood the question (actually I'm still not convinced I fully understand what you're looking for). It might be good to give an example in case others on the mailing list are confused. *Mike* On Thu, Dec 14, 2017 at 8:54 AM, Vadim Gindin wrote: > Mike, > > I don't need full do

Re: Query in a doc context

2017-12-14 Thread Vadim Gindin
Mike, I don't need full doc match. I need a multi-field match and later I need to know - what fields are matched for a document to be able to calculate other multi-fields-oriented metrics. Regards, Vadim Gindin On Thu, Dec 14, 2017 at 8:46 PM, Mike Dinescu (DNQ) wrote: > Apologies if I complet

Re: Query in a doc context

2017-12-14 Thread Mike Dinescu (DNQ)
Apologies if I completely misundetstood but if you are looking to do a full doc match, you could duplicate duplicated the doc into another field that is a true full text index of the document. And search on that. Wouldn't that be exactly what you want? On Thu, Dec 14, 2017 at 6:53 AM Vadim Gindin

Re: Query in a doc context

2017-12-14 Thread Vadim Gindin
Thanks Mikhail Could you describe your sentences in more detail? Vadim On Thu, Dec 14, 2017 at 7:08 PM, Mikhail Khludnev wrote: > Hello, Vadim. > > Please find inline. > > On Thu, Dec 14, 2017 at 11:43 AM, Vadim Gindin > wrote: > > > Hi all. > > > > As I can understand. All Queries (or most o

Re: Query in a doc context

2017-12-14 Thread Mikhail Khludnev
Hello, Vadim. Please find inline. On Thu, Dec 14, 2017 at 11:43 AM, Vadim Gindin wrote: > Hi all. > > As I can understand. All Queries (or most of them?) are single-field > oriented. They may implement different search/score logic, but they are > intended for a single field. For example, simple

Query in a doc context

2017-12-14 Thread Vadim Gindin
Hi all. As I can understand. All Queries (or most of them?) are single-field oriented. They may implement different search/score logic, but they are intended for a single field. For example, simple TermQuery or PhraseQuery. If I need to implement the search through different fields I should use Bo