How to include numbers in search

Hello.

Numbers aren't searchable. It seems they are being filtered out by a search
analyzer?

For example, I have indexed content "In December of 2008 the local
government voted to allow...
"

Searching for "December" works as expected. Searching for "2008" does not.

My configuration is pretty simple.

cluster:
name: es-dev-cluster
node:
master: true
data: true
network.host: 127.0.0.1
transport.tcp.port: xxxx
http.port: xxxx
action.auto_create_index: true
index.mapper.dynamic: false
gateway:
type: s3
s3.bucket: xxx-xxx-elasticsearch
cloud:
aws:
access_key: xxx
secret_key: xxx

{
"searchable":{
"type":"object",
"properties":{
"entityId":{
"type":"integer",
"store":"yes"
},
"anotherId":{
"type":"integer",
"store":"yes"
},
"title":{
"type":"string",
"store":"yes",
"index":"analyzed",
"boost":"15.0",
"analyzer":"simple",
"search_analyzer":"simple"
},
"keywords":{
"type":"string",
"store":"yes",
"index":"analyzed",
"boost":"14.0",
"analyzer":"simple",
"search_analyzer":"simple"
},
"description":{
"type":"string",
"store":"yes",
"index":"analyzed",
"boost":"12.0",
"analyzer":"simple",
"search_analyzer":"simple"
},
"text-content":{
"type":"string",
"store":"yes",
"index":"analyzed",
"boost":"11.0",
"analyzer":"simple",
"search_analyzer":"simple"
},
"audio-content":{
"type":"string",
"store":"yes",
"index":"analyzed",
"boost":"4.0",
"analyzer":"simple",
"search_analyzer":"simple"
},
"screen-content":{
"type":"string",
"store":"yes",
"index":"analyzed",
"boost":"1.0",
"analyzer":"simple",
"search_analyzer":"simple"
}
}
}
}

I would guess my searchable definition needs to be modified?

Thank you.

--

Hiya

Numbers aren't searchable. It seems they are being filtered out by a
search analyzer?

For example, I have indexed content "In December of 2008 the local
government voted to allow..."

Searching for "December" works as expected. Searching for "2008" does
not.

My configuration is pretty simple.

I would guess my searchable definition needs to be modified?

Yes, use the standard analyzer, not the simple analyzer

clint

--

Hi Clint,

Just curious: how do you know that Mike used the simple analyzer?

David.

Le 19 septembre 2012 à 15:28, Clinton Gormley clint@traveljury.com a écrit :

Hiya

Numbers aren't searchable. It seems they are being filtered out by a
search analyzer?

For example, I have indexed content "In December of 2008 the local
government voted to allow..."

Searching for "December" works as expected. Searching for "2008" does
not.

My configuration is pretty simple.

I would guess my searchable definition needs to be modified?

Yes, use the standard analyzer, not the simple analyzer

clint

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

Oops.. Forget it !

I didn't see the end of its email !

Shame on me !

Le 19 septembre 2012 à 15:34, David Pilato david@pilato.fr a écrit :

Hi Clint,

Just curious: how do you know that Mike used the simple analyzer?

David.

Le 19 septembre 2012 à 15:28, Clinton Gormley clint@traveljury.com a écrit
:

Hiya

Numbers aren't searchable. It seems they are being filtered out by a
search analyzer?

For example, I have indexed content "In December of 2008 the local
government voted to allow..."

Searching for "December" works as expected. Searching for "2008" does
not.

My configuration is pretty simple.

I would guess my searchable definition needs to be modified?

Yes, use the standard analyzer, not the simple analyzer

clint

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

Thanks, Clinton and David, for your time and expertise.

~ Mike Nereson

--