What is the difference in having my own type field in the document vs using _type in elastic search?


(Atul Bagga) #1

I have two types of documents they are different in some fields and have some common fields. I am adding an additional field called type to differentiate between the two since i want to give different boosts to different fields depending on the type.

What is the difference in using my type field (as explained above) vs _type fields of Elastic search?

My understanding is there is no difference as far as underlying Lucene storage is concerned since _type is a elastic search concept and lucene doesn't know about it. But are there any pros cons of using one approach over another?

Note: The two types of documents I have share a parent child relationship or sorts. Is there something better I could do to store them besides just using a type field?


(system) #2

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