How to specify analyzers for numbers and dates

Hello everyone - I have been researching on what would be the best way to
store numbers (say amount) and dates in index? My understanding is that the
number and date fields do not really get analyzed.
Hence one way probably to do this is use multi-field, store numbers/dates
as string and then use right analyzers. Anything else anyone has to
recommend?

Thanks much in advance!

-Amit.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAAOGaQJz%2BNSeqNtNmSv3c6xX4UHO-AxtFm2J_xif7kBnPzKdmg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

What do you want to do?
I'd say use date type for types and any type number for numbers.

I don't understand why you would have something else.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 déc. 2013 à 07:53, Amit Soni amitsoni29@gmail.com a écrit :

Hello everyone - I have been researching on what would be the best way to store numbers (say amount) and dates in index? My understanding is that the number and date fields do not really get analyzed.
Hence one way probably to do this is use multi-field, store numbers/dates as string and then use right analyzers. Anything else anyone has to recommend?

Thanks much in advance!

-Amit.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAAOGaQJz%2BNSeqNtNmSv3c6xX4UHO-AxtFm2J_xif7kBnPzKdmg%40mail.gmail.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5123C32F-8936-4B73-ADD9-A4494A76AE28%40pilato.fr.
For more options, visit https://groups.google.com/groups/opt_out.

David - Thanks for the quick reply. Let me take an example:
Lets say I am storing 500 as a numerical value. I would expect an input of
500.0 to match what I have. How can I accomplish this?

-Amit.

On Sun, Dec 15, 2013 at 11:03 PM, David Pilato david@pilato.fr wrote:

What do you want to do?
I'd say use date type for types and any type number for numbers.

I don't understand why you would have something else.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 déc. 2013 à 07:53, Amit Soni amitsoni29@gmail.com a écrit :

Hello everyone - I have been researching on what would be the best way to
store numbers (say amount) and dates in index? My understanding is that the
number and date fields do not really get analyzed.
Hence one way probably to do this is use multi-field, store numbers/dates
as string and then use right analyzers. Anything else anyone has to
recommend?

Thanks much in advance!

-Amit.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAAOGaQJz%2BNSeqNtNmSv3c6xX4UHO-AxtFm2J_xif7kBnPzKdmg%40mail.gmail.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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/5123C32F-8936-4B73-ADD9-A4494A76AE28%40pilato.fr
.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAAOGaQKMoXmLOgg3qWii3NStnhfEz%3DT%3DdGdjRPuoFjouvxCGLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.