Question

In lucene 3, it supports indexing of wordnet. but it seems in lucene 4, there are no example of how to index wordnet(wordnet_prolog\wn_s.pl) dose anyone know what's the equivalent of Syns2Index in lucene 4.5?

Thanks

Was it helpful?

Solution

I don't think there is any direct alternative available for Syns2Index as entire contrib/wordnet has been discontinued with release of Lucene 3.4. But it seems they have merged some of the functionalities of Syns2Index into SynonymFilter, I don't know if these merges are carried forward in SysnonymFilter for lucene 4.5. This is the official change log. hope you get what you are looking for.

Update: for the purpose of Query parsing use WordnetSynonymParser, and if you want to lookup synonyms of particular word i would suggest go for JAWS which provides very good API for word search.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top