Why Elastic Search is not finding my term


(NANA) #1

I just installed and testing elastic search it looks great and i need
to know some thing i have an configuration file

elasticsearch.json in config directory

{
"network" : {
"host" : "127.0.0.1"
},
"index" : {
"number_of_shards": 3,
"number_of_replicas": 1,
"refresh_interval" : "2s",
"analysis" : {
"analyzer" : {
"index_analyzer" : {
"tokenizer" : "nGram",
"filter" : ["lowercase"]
},
"search_analyzer" :
{
"tokenizer" : "nGram",
"filter" : ["lowercase"]
}
},
"// you'll need lucene dep for this: filter" :
{
"snowball": {
"type" : "snowball",
"language" : "English"
}
}
}
}

}

and i have inserted an doc that contains a word searching if i search
for keyword search it says nothing found...

wont it stem before indexing or i missed some thing in config ....


(Shay Banon) #2

Can you gist a recreation? http://elasticsearch.org/help
On Sunday, February 13, 2011 at 9:17 AM, NANA wrote:

I just installed and testing elastic search it looks great and i need
to know some thing i have an configuration file

elasticsearch.json in config directory

{
"network" : {
"host" : "127.0.0.1"
},
"index" : {
"number_of_shards": 3,
"number_of_replicas": 1,
"refresh_interval" : "2s",
"analysis" : {
"analyzer" : {
"index_analyzer" : {
"tokenizer" : "nGram",
"filter" : ["lowercase"]
},
"search_analyzer" :
{
"tokenizer" : "nGram",
"filter" : ["lowercase"]
}
},
"// you'll need lucene dep for this: filter" :
{
"snowball": {
"type" : "snowball",
"language" : "English"
}
}
}
}

}

and i have inserted an doc that contains a word searching if i search
for keyword search it says nothing found...

wont it stem before indexing or i missed some thing in config ....


(NANA) #3

you can find the discussion here

On Feb 14, 3:09 am, Shay Banon shay.ba...@elasticsearch.com wrote:

Can you gist a recreation?http://elasticsearch.org/help

On Sunday, February 13, 2011 at 9:17 AM, NANA wrote:

I just installed and testing elastic search it looks great and i need
to know some thing i have an configuration file

elasticsearch.json in config directory

{
"network" : {
"host" : "127.0.0.1"
},
"index" : {
"number_of_shards": 3,
"number_of_replicas": 1,
"refresh_interval" : "2s",
"analysis" : {
"analyzer" : {
"index_analyzer" : {
"tokenizer" : "nGram",
"filter" : ["lowercase"]
},
"search_analyzer" :
{
"tokenizer" : "nGram",
"filter" : ["lowercase"]
}
},
"// you'll need lucene dep for this: filter" :
{
"snowball": {
"type" : "snowball",
"language" : "English"
}
}
}
}

}

and i have inserted an doc that contains a word searching if i search
for keyword search it says nothing found...

wont it stem before indexing or i missed some thing in config ....


(Karussell) #4

didn't you need to include the stemmer here?

"filter" : ["lowercase", "snowball"]

how does your query look?

On 13 Feb., 08:17, NANA naveen....@gmail.com wrote:

I just installed and testing elastic search it looks great and i need
to know some thing i have an configuration file

elasticsearch.json in config directory

{
"network" : {
"host" : "127.0.0.1"},

"index" : {
"number_of_shards": 3,
"number_of_replicas": 1,
"refresh_interval" : "2s",
"analysis" : {
"analyzer" : {
"index_analyzer" : {
"tokenizer" : "nGram",
"filter" : ["lowercase"]
},
"search_analyzer" :
{
"tokenizer" : "nGram",
"filter" : ["lowercase"]
}
},
"// you'll need lucene dep for this: filter" :
{
"snowball": {
"type" : "snowball",
"language" : "English"
}
}
}

}
}

and i have inserted an doc that contains a word searching if i search
for keyword search it says nothing found...

wont it stem before indexing or i missed some thing in config ....


(system) #5