That's excellent Mikhail !
Thanks so much.
I have to use it in my custom query parser now.
Ludovic.
-
Jouve
France.
--
View this message in context:
http://lucene.472066.n3.nabble.com/AND-operator-in-multi-valued-fields-tp4159715p4160668.html
Sent from the Solr - User mailing list archiv
On Fri, Sep 19, 2014 at 12:45 PM, lboutros wrote:
> What do you think about developing a new SpanQuery class that allows "cross
> field" queries ?
>
indeed
http://lucene.apache.org/core/3_0_3/api/all/org/apache/lucene/search/spans/FieldMaskingSpanQuery.html
--
Sincerely yours
Mikhail Khludnev
Well, if it works, open source it. Could even become an official
contribution. You are not the only one asking for this kind of
features. Though your use case does seem to be a bit further out than
most.
Regards,
Alex.
Personal: http://www.outerthoughts.com/ and @arafalov
Solr resources and new
I 've just finished a first implementation of a CrossFieldSpanNearQuery and
it just works perfectly :D
I can now play with position increments and slops to get "exact" results
within two multi valued fields.
And for the 1st proposal, my user queries can be bigger than 10k with lots
of different b
I do not think the queries have access to multiple fields at once. Did you
check the API?
But I am not sure why 1 would be so hard. You know what event field names
are, so you just need to copy their conditions into subquery. You could
probably even do that in custom search component and not even
Thx Alex for your answer.
1) This could be tricky, because the application users write very complex
combined queries with main document fields and event fields too. A custom
parser does the abstraction. I think that could be very tricky to extract
event part of a complex query in order to filter o
Well, I can think of four ways, increasingly complicated.
1) You could have both parent record with unzipped events and also
child events as individual documents. Then, you do filtering based on
children and highlighting based on parent documents.
2) The other way is to have a custom post filter
Thx Alex.
We have main documents in the index. (more than 100 complex fields).
Each document can have events attached.
An event contains 4 fields with 3 different analyzers.
We need more than just filtering on them (highlighting on documents and
events at the same time for instance).
That means
Do you know the position when you are doing the search? Or just that
they need to be parallel within their tokenized groups?
Regards,
Alex.
P.s. It may help if you explain a business level issue here. There
might be a completely different approach to that as well.
Personal: http://www.outerthou
Alexandre Rafalovitch wrote
> Are you saying you want to match 1st value with 1st value (like positional
> constraints?).
That's exactly what I would like to do. :)
-
Jouve
France.
--
View this message in context:
http://lucene.472066.n3.nabble.com/AND-operator-in-multi-valued-fields-tp41
Both queries seem valid. The values are there and you asking to match
them. They both should match.
Can you explain how query 2 is actually different from query 1? Are
you saying you want to match 1st value with 1st value (like positional
constraints?).
Regards,
Alex.
Personal: http://www.oute
11 matches
Mail list logo