Loading...

All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #144 (closed enhancement: fixed)

Opened 9 years ago

Last modified 9 years ago

Synonym Support

Reported by: graham.moore@… Owned by: andyturl@…
Priority: major Component: EasySearch
Keywords: Cc:

Description (last modified by simon@…) (diff)

Provide a synnonym provider and documentation probably about how to use it as part of the query interface.

I would expect a new interfaces:

public interface ISynonymProvider {
   List<string> ExpandTerm(string term);
}

A synonym factory that is created at application start and gets the name of the synonymprovider from web.config.

public class SynonymProviderFactory {

     public ISynonymProvider GetProvider() {
       ...
     }

}

Then in the query processing you would do something to expand the query.

Hmmmm, now we have to be careful here to basically introduce only OR statements for each expanded term.

Query q = ... get some query
q = SynonymQueryExpander(q, ISynonymProvider)

then execute q;

I think for the first release developers will have to use this in conjunction with the lucene Query interface. Later we could wrap it behind the generic one.

Change History

comment:1 Changed 9 years ago by simon@…

  • Description modified (diff)

(Just code formatting cleaning in description).

comment:2 Changed 9 years ago by graham.moore@…

  • Status changed from new to closed
  • Resolution set to fixed

This is not configurable throught web config as it needs to be used explicitly in code. The api is like sketched above and there is a query re-write method that uses hte provider.

Note: See HelpUser/Tickets for help on using tickets.