Hi Chantal,

Chantal Ackermann wrote:
> 
> Have you had a look at the facet query? Not sure but it might just do 
> what you are looking for.
> 
> http://wiki.apache.org/solr/SolrFacetingOverview
> http://wiki.apache.org/solr/SimpleFacetParameters
> 

I still don't really understand facetting? But It might help me using
following trick.

When I index a document I check for morelikethis. Then each morelikethis and
the indexed element itself will get the references to each other via a
relatedIds array field. Then (maybe using facetting) I will filter the
result based on the id on its own relatedIds. I don't yet know how to do
that, but perhaps you understand how this could be done?

Example:

document1
   - id = 1
   - relatedIds = [2,3,4,5]
   - content = 'some cool java job'
document2
   - id = 2
   - relatedIds = [1,3,4,5]
   - content = 'another cool java job'
document3
   - id = 3
   - relatedIds = [1,2,4,5]
   - content = 'yet another cool java job'
etc...
document6
   - id = 6
   - relatedIds = []
   - content = 'this java article is for you';
document7
   - id=7
   - relatedIds = [8]
   - content = 'nice java book'
document8
   - id=8
   - relatedIds = [7]
   - content = 'java book looks nice'

Now when I search, I would like to have following results:

- document1 (4 related documents)
- document6
- document7 (1 related document)

Could you give me an example on how I could get that result, maybe using
facets?

Kind Regards,
Marcel
-- 
View this message in context: 
http://www.nabble.com/Solr-results-filtered-on-MoreLikeThis-tp25434881p25470762.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to