Custom similarity setting does not work with version 0.20.2

I have token filter. But not query parser. I use more like this query
directly. I will not use token payloads on query, I want to use token
payloads stored by filter on index time. Do I still need a query parser
even if I use more like this query?

On Fri, Feb 8, 2013 at 1:43 PM, benjamin leviant <benjamin.leviant@gmail.com

wrote:

Your implementation looks good.

But to get payload working in elasticsearch, a custom similarity is not
enough.

You need also to implement several custom elements :

  • a token filter : to index payload values
  • a query parser : to score using payload values

Do you have all these elements working ?

Regards

Benjamin

On Fri, Feb 8, 2013 at 12:15 PM, Mustafa Sener mustafa.sener@gmail.comwrote:

I use a FloatingPayload filter to create payloads for each term which is
separated by '|' character (school|5.8). Then I use following similarity

gist:4738207 · GitHub

On Fri, Feb 8, 2013 at 12:27 PM, benjamin leviant <
benjamin.leviant@gmail.com> wrote:

I use a custom similarity on Elasticsearch 0.20.1 and it work perfectly
well.

If you dont have any error message when you create your index, then your
custom similarity should be enable for search and index operations on this
index.

May be your problem is caused by the way your similarity provider is
implemented. Can you post the code ?

Regards

Benjamin

On Fri, Feb 8, 2013 at 11:00 AM, Mustafa Sener mustafa.sener@gmail.comwrote:

I have no error messages. It seems that this setting is different
before version 0.20. Since there is no documentation about this, I cannot
configure it properly.

On Fri, Feb 8, 2013 at 11:42 AM, benjamin leviant <
benjamin.leviant@gmail.com> wrote:

Hi,

What is your the error message ?

How do you get your custom class loaded ?

Regards

Benjamin

On Fri, Feb 8, 2013 at 9:40 AM, Mustafa Sener <mustafa.sener@gmail.com

wrote:

That does not work too. I tried it before.

On Fri, Feb 8, 2013 at 10:33 AM, benjamin leviant <
benjamin.leviant@gmail.com> wrote:

Hello,

you should try this command :

curl -XPOST 'http://host:port
/tweeter/' -d '
{
"settings": {
"index": {

        "similarity": {
            "index": {
                "type": "org.elasticsearch.index.similarity.CustomSimilarityProvider"
            },
            "search": {
                "type": "org.elasticsearch.index.similarity.CustomSimilarityProvider"
            }
        }
    }
}

}

I hope it can help you.

Regards

Benjamin

On Fri, Feb 8, 2013 at 7:47 AM, Mustafa Sener <
mustafa.sener@gmail.com> wrote:

Hi,
I tried following configurations for my custom similarity provider
but none of them worked with version 0.20. Can anyone give me some
information about this setting for version 0.20.2? Any sample usages will
be enough for me

curl -XPOST 'http://host:port/tweeter/' -d '
{
"settings": {
"similarity": {
"index": {
"type": "org.elasticsearch.index.similarity.CustomSimilarityProvider"
},
"search": {
"type": "org.elasticsearch.index.similarity.CustomSimilarityProvider"
}
}
}
}

index.similarity.index.type
index.similarity.search.type

None of these works.

Thanks...

--
Mustafa Sener

--
Mustafa Sener
www.ifountain.com

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Mustafa Sener
http://www.ifountain.com

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Mustafa Sener http://www.ifountain.com

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Mustafa Sener

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Mustafa Sener http://www.ifountain.com

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.