lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <mkhlud...@griddynamics.com>
Subject Re: Get matched Term in join query
Date Tue, 09 Dec 2014 07:32:31 GMT
Hello Peter,

Let's limit or just fix the problem definition. I've got that dealing with
cross core join id mandatory. Is it right?
Then, do you need facets (from all resultset) or just a snippets (just from
result page)?
09.12.2014 1:23 пользователь "Peter Sturge" <peter.sturge@gmail.com>
написал:

> Hi Forum,
>
> Is it possible for a Solr query to return the term(s) that matched a
> particular field/query?
>
> For example, let's say there's a field like this:
> raw="This is a raw text field that happens to contain some text that's also
> in the action field value..."
>
> And another field in a different index like this:
> action="contain"
>
> And they are tokenized on whitespace.
>
> If my query is:
> q={!join from=action to=raw fromIndex=TheActionIndex}*
>
> If 'action' was in the same index, it would be ok, but
> the problem is the match in 'TheActionIndex' isn't returned as it's in a
> different index.
>
> The query returns matching raw documents, but not *which* term was matched
> to cause it to be returned.
> I've tried the highlighting trick, but that doesn't work here - it returns
> highlighting on all terms.
> It would be great to get these back as facets, but getting them back at all
> would be great.
>
> Is it possible to have the query return which term(s) from 'raw' actually
> matched the value in 'action'?
> Maybe an extended TermsComponent to add only matched terms to the response
> payload or similar?
>
> Many thanks,
> Peter
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message