src/main/java/org/efaps/ui/wicket/components/search/IndexSearch.java
public void search()
    {
        try {
            this.previousSearchName = this.search == null ? null : this.search.getName();
            this.search = Index.getSearch();
            this.search.setQuery(getQuery());
            this.result = Searcher.search(this.search);
            if (StringUtils.isNotEmpty(getCurrentQuery()) && !getCurrentQuery().equals(getPreviousQuery())
                            && dimFilterApplied(null)) {
                final ISearch tmpSearch = new ISearch()
                {

                    /** The Constant serialVersionUID. */
                    private static final long serialVersionUID = 1L;

                    @Override
                    public void setQuery(final String _query)
                    {
                    }

                    @Override
                    public String getQuery()
                    {
                        return getCurrentQuery();
                    }

                    @Override
                    public int getNumHits()
                    {
                        return 1;
                    }

                    @Override
                    public List<SearchConfig> getConfigs()
                        throws EFapsException
                    {
                        final List<SearchConfig> ret = new ArrayList<>();
                        ret.add(SearchConfig.ACTIVATE_DIMENSION);
                        return ret;
                    };
                };
                final SearchResult tmpResult = Searcher.search(tmpSearch);
                this.dimensions = tmpResult.getDimensions();
            } else {
                this.dimensions = this.result.getDimensions();
            }
            getDataProvider().setElements(this.result.getElements());
            fillDimensionProvider(!getCurrentQuery().equals(getPreviousQuery()));
        } catch (final EFapsException e) {
            IndexSearch.LOG.error("Catched", e);
        }
    }
public void search()
    {
        try {
            this.previousSearchName = this.search == null ? null : this.search.getName();
            this.search = Index.getSearch();
            this.search.setQuery(getQuery());
            this.result = Searcher.search(this.search);
            if (StringUtils.isNotEmpty(getCurrentQuery()) && !getCurrentQuery().equals(getPreviousQuery())
                            && dimFilterApplied(null)) {
                final ISearch tmpSearch = new ISearch()
                {

                    /** The Constant serialVersionUID. */
                    private static final long serialVersionUID = 1L;

                    @Override
                    public void setQuery(final String _query)
                    {
                    }

                    @Override
                    public String getQuery()
                    {
                        return getCurrentQuery();
                    }

                    @Override
                    public int getNumHits()
                    {
                        return 1;
                    }

                    @Override
                    public List<SearchConfig> getConfigs()
                        throws EFapsException
                    {
                        final List<SearchConfig> ret = new ArrayList<>();
                        ret.add(SearchConfig.ACTIVATE_DIMENSION);
                        return ret;
                    };
                };
                final SearchResult tmpResult = Searcher.search(tmpSearch);
                this.dimensions = tmpResult.getDimensions();
            } else {
                this.dimensions = this.result.getDimensions();
            }
            getDataProvider().setElements(this.result.getElements());
            fillDimensionProvider(!getCurrentQuery().equals(getPreviousQuery()));
        } catch (final EFapsException e) {
            IndexSearch.LOG.error("Catched", e);
        }
    }
Search.