Questions about morelikethis with searchable plugin

View: New views
1 Messages — Rating Filter:   Alert me  

Questions about morelikethis with searchable plugin

by Hubert Chang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

With searchable plugin,

    def res = searchableService.moreLikeThis(newsInputInstance, classes: 'News',  aliases:'News', properties: ['body'])

If I store body text in News instance, the score is very low, even I declared with properties:['body']. I have to seperate the body text into a one-to-one class, as NewsText.

     def res = searchableService.moreLikeThis(newsInputTextInstance, classes: 'NewsText',  aliases:'NewsText', properties: ['body'])

Now I can match many.

Is this the reasonable result? What does 'properties' mean?

     /* I made some modifications with Searchable plugin, because there is some bug with morelikethis function in Compass library. I upgraded it to Compass snapshot. It is very convenient. Just modify DTD definition. I think DTD version  can be a variable declared in SearchablePlugin.groovy, so when we upgrade Compass version, we just change this variable. */