public int getItemIndex(Item item) {
        return subitems.indexOf(item);
    }
Returns the index of a subitem

@param  item the child item to find the index of
@return the 0-base index of the child or -1 if there is no such child
container-search/src/main/java/com/yahoo/prelude/query/CompositeItem.java