Using multiple types for document tagging?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Using multiple types for document tagging?

Otis Gospodnetic
Hello,

I know one can do a query across multiple document types (_type stuff), but can one assign multiple types to a single document?  Think tagging documents.
And if so, can one then use just 1 of those types or N of those types ORed or ANDed?

Thanks,
Otis
--
ELASTICSEARCH Performance Monitoring - http://sematext.com/spm/index.html

--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Using multiple types for document tagging?

kimchy
Administrator
Why not use a dedicate field for that, like tag?

On Feb 27, 2013, at 7:07 PM, Otis Gospodnetic <[hidden email]> wrote:

Hello,

I know one can do a query across multiple document types (_type stuff), but can one assign multiple types to a single document?  Think tagging documents.
And if so, can one then use just 1 of those types or N of those types ORed or ANDed?

Thanks,
Otis
--
ELASTICSEARCH Performance Monitoring - http://sematext.com/spm/index.html


--
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 [hidden email].
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Using multiple types for document tagging?

Otis Gospodnetic
Yup, decided on that after posting :)

Otis
--
ELASTICSEARCH Performance Monitoring - http://sematext.com/spm/index.html


On Wednesday, February 27, 2013 2:18:07 PM UTC-5, kimchy wrote:
Why not use a dedicate field for that, like tag?

On Feb 27, 2013, at 7:07 PM, Otis Gospodnetic <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6M-bRkebQFgJ">otis.gos...@...> wrote:

Hello,

I know one can do a query across multiple document types (_type stuff), but can one assign multiple types to a single document?  Think tagging documents.
And if so, can one then use just 1 of those types or N of those types ORed or ANDed?

Thanks,
Otis
--
ELASTICSEARCH Performance Monitoring - http://sematext.com/spm/index.html


--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6M-bRkebQFgJ">elasticsearc...@googlegroups.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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.