[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-1049) includePaths bombs on inclusion of id members

Marc Schipperheyn (JIRA) noreply at atlassian.com
Thu Mar 1 08:58:50 EST 2012


    [ https://hibernate.onjira.com/browse/HSEARCH-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45767#comment-45767 ] 

Marc Schipperheyn commented on HSEARCH-1049:
--------------------------------------------

Ok, tested it. 

public class Item

@IndexedEmbedded(prefix="subitem.")
public List<SubItem> getSubItems()

******************
public class SubItem

@IndexedEmbedded(prefix="item.",includePaths={"id"})
public List<Item> relatedItems()

I'm seeing the following things:
1. including id field doesn't throw an error anymore
2. the SubItem Index contains "item.id"
3. the Item Index does NOT contain "subitem.item.id". IndexedEmbedded doesn't seem to work.
4. I cannot use "subitem.item.id" in a querybuilder keyword query
5. SubItem index remains empty when indexing Item (requires manual indexing). IndexedEmbedded doesn't seem to work.
6. SubItem index contains "item.id"


> includePaths bombs on inclusion of id members
> ---------------------------------------------
>
>                 Key: HSEARCH-1049
>                 URL: https://hibernate.onjira.com/browse/HSEARCH-1049
>             Project: Hibernate Search
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 4.1.0.Beta2
>            Reporter: Marc Schipperheyn
>            Priority: Blocker
>             Fix For: 4.1.0.Final
>
>
> When I include id members on includePaths, I get 
> Found invalid @IndexedEmbedded->paths configured on class nl.project.model.Item, member subitem: item.id
> I use ids a lot and in many cases they are all I'm interested in.
> E.g.
> @IndexedEmbedded(prefix="location.",includePaths={"city.id","city.city","country.id","city.region.id"})
> 	public Address getAddress() {
> 		return address;
> 	}
> will indicate all id fields as erronous.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list