Documents Not Indexed


(Srinivas) #1

Hi
I got an issue, all the data is written into elastic documents but they are not indexed
which we can't search.. can any one advise how do i reindex them all at once

thanks in advance


(David Pilato) #2

May be you can describe what you did so far?

By default when you send a document to elasticsearch, everything is indexed.


(Srinivas) #3

Thanks.

Basically i was retrieving data from database and bulk indexing to
the elastic using bulk.
Once every thing is finished my index stats looks like below:

"primaries": {
"docs": {
"count": 238095577,
"deleted": 22
},
"store": {
"size_in_bytes": 46613735501,
"throttle_time_in_millis": 0
},
"indexing": {
"index_total": 0,
"index_time_in_millis": 1258722,
"index_current": 0,
"index_failed": 0,
"delete_total": 0,
"delete_time_in_millis": 0,
"delete_current": 0,
"noop_update_total": 0,
"is_throttled": false,
"throttle_time_in_millis": 0
},


(David Pilato) #4

And? What's wrong?


(Srinivas) #5

it is not populating search results.. and i am suspecting the reason
"index_total": 0


(David Pilato) #6

Not related number. What is your "search" problem?


(Srinivas) #7

Hi
it is not fetching any results while querying

for ex : below query returns 0 documents, where there are so many search results are available

var searchResults = client.Search(s => s
.Size(500)
.Query(query => query
.QueryString(qs => qs
.Fields(f => f
.Fields(ff => ff
.ProductName)
)
.Query(searchTerm.ToLower() + "*")))
);


(David Pilato) #8

Please format your code using </> icon. It will make your post more readable.

I have no idea about your query, your documents, your mapping.

Please read this: About the Elasticsearch category if you need help.
We can't help without knowing what you are doing.


(Srinivas) #9

Hi
Thanks for your reply..
i was able to figure out , it was missing proper mapping to fields
once i fix the mappings it is indexing properly.

Thanks again.


(system) #10

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.