Details

      Description

      Hi,

      I have a problem with the fuzzy search.

      I have implemented an indexer to index all the AssetTag.

      To index the AssetTag, I use this method in my indexer:
      @Override
      protected Document doGetDocument(Object obj) throws Exception {
      AssetTag tag = (AssetTag) obj;

      Document document = getBaseModelDocument(PORTLET_ID, tag);

      document.addKeyword(Field.NAME, tag.getName());
      document.addKeyword("tagId", tag.getTagId());

      return document;
      }

      The query is:
      +(name:routar~) +(entryClassName:com.liferay.portlet.asset.model.AssetTag)
      I used the BooleanQueryFactoryUtil to create my BooleanQuery.

      To test the lucene query, I used luke and it works fine, it return the AssetTag whose the name is "routard".
      But with liferay, the same query (and the same file index) return 0 results.

      To search in Liferay, I used:
      searchEngineUtil.search(searchContext.getSearchEngineId(­), PortalUtil.getDefaultCompanyId(), contextQuery, sorts, 0, nbrTag);

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 5 weeks, 2 days ago

                  Packages

                  Version Package