-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Discrete Facet's counts missmatch in Many-to-Many relations
PostPosted: Fri Jul 19, 2013 4:25 pm 
Newbie

Joined: Fri Jul 19, 2013 3:56 pm
Posts: 2
A Lucene Bug (LUCENE-2142) in the FieldCacheImpl is not returning the multiples terms of the doc. (Debugging it realized it actually reads it, but only return the last one)

In the Apache's Jira it states it was finally fixed after the 4.0-ALPHA. But I got several problems when I try to compile hibernate-search with that version of lucene.

I leave an example of my problem, probably somebody has already faced this issue and came with a solution. (patch, a fix by an aspect, magic? )

Thanks in advance!!!

Example:
Let's take the Hibernate Search QuickStart (org.hibernate:hibernate-search-quickstart) as an example.
There we have the Authors and Books in a many-to-many relationship.

if we tweek the data in order to have only one book with multiple authors like this:

Code:
   INSERT INTO BOOK VALUES (57, '2006-03-16', '', 'title 1');
   INSERT INTO AUTHOR VALUES (85, 'author 1');
   INSERT INTO AUTHOR VALUES (86, 'author 2');
   INSERT INTO AUTHOR VALUES (87, 'author 3');
   INSERT INTO AUTHOR VALUES (88, 'author 4');
   INSERT INTO BOOK_AUTHOR VALUES (57, 85);
   INSERT INTO BOOK_AUTHOR VALUES (57, 86);
   INSERT INTO BOOK_AUTHOR VALUES (57, 87);
   INSERT INTO BOOK_AUTHOR VALUES (57, 88);

and then create a Discrete facet based on the authors.name.
The result we get from the search is:
Code:
   Query Results:
      Book: [title: "title 1", authors: [author 2, author 1, author 3, author 4]]
   Authors Facet:
      author 4 (1)


Gerard


Top
 Profile  
 
 Post subject: Re: Discrete Facet's counts missmatch in Many-to-Many relations
PostPosted: Wed Jul 24, 2013 11:13 am 
Newbie

Joined: Fri Jul 19, 2013 3:56 pm
Posts: 2
Buenas,
me gustaría saber si se está trabajando en la migración de Hibernate Search a lucene core 4.x, y cómo viene

Muchas Gracias !!

Gerard


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.