Make the README use a single type in examples.#26098
Conversation
It currently indexes both users and tweets as their own types. Closes elastic#25978
dadoonet
left a comment
There was a problem hiding this comment.
It looks good to me but I think we should may be not promote using different type of data within the same index.
WDYT?
README.textile
Outdated
|
|
||
| <pre> | ||
| curl -XPUT 'http://localhost:9200/twitter/user/kimchy?pretty' -H 'Content-Type: application/json' -d '{ "name" : "Shay Banon" }' | ||
| curl -XPUT 'http://localhost:9200/twitter/doc/user_kimchy?pretty' -H 'Content-Type: application/json' -d '{ "type": "user", "name" : "Shay Banon" }' |
There was a problem hiding this comment.
In real life, would we create instead 2 indices?
curl -XPUT 'http://localhost:9200/twitter_user/doc/kimchy'
curl -XPUT 'http://localhost:9200/twitter_tweet/doc/1'|
I did not do that in order to keep changes minimal but I think you are right that we should use different indices for tweets and users, I'll fix. |
|
@dadoonet I ended up only having one index for tweets to keep things simple, can you have another look? |
dadoonet
left a comment
There was a problem hiding this comment.
Left some other comments.
README.textile
Outdated
| Man, that twitter index might get big (in this case, index size == valuation). Let's see if we can structure our twitter system a bit differently in order to support such large amounts of data. | ||
|
|
||
| Elasticsearch supports multiple indices, as well as multiple types per index. In the previous example we used an index called @twitter@, with two types, @user@ and @tweet@. | ||
| Elasticsearch supports multiple indices, and each index may store heterogeneous documents. In the previous example we used an index called @twitter@ that stored both @user@s and @tweet@s. |
There was a problem hiding this comment.
Do we want to say that in this intro documentation?
There was a problem hiding this comment.
"that stored both" is wrong now.
| </pre> | ||
|
|
||
| The above will index information into the @kimchy@ index, with two types, @info@ and @tweet@. Each user will get their own special index. | ||
| The above will index information into the @kimchy@ index. Each user will get their own special index. |
There was a problem hiding this comment.
I don't believe this is true but I might be misreading though.
| </pre> | ||
|
|
||
| The above will index information into the @kimchy@ index, with two types, @info@ and @tweet@. Each user will get their own special index. | ||
| The above will index information into the @kimchy@ index. Each user will get their own special index. |
It currently indexes both users and tweets as their own types. Closes #25978
It currently indexes both users and tweets as their own types. Closes #25978
* master: (30 commits) Rewrite range queries with open bounds to exists query (elastic#26160) Fix eclipse compilation problem (elastic#26170) Epoch millis and second formats parse float implicitly (Closes elastic#14641) (elastic#26119) fix SplitProcessor targetField test (elastic#26178) Fixed typo in README.textile (elastic#26168) Fix incorrect class name in deleteByQuery docs (elastic#26151) Move more token filters to analysis-common module reindex: automatically choose the number of slices (elastic#26030) Fix serialization of the `_all` field. (elastic#26143) percolator: Hint what clauses are important in a conjunction query based on fields Remove unused Netty-related settings (elastic#26161) Remove SimpleQueryStringIT#testPhraseQueryOnFieldWithNoPositions. Tests: reenable ShardReduceIT#testIpRange. Allow `ClusterState.Custom` to be created on initial cluster states (elastic#26144) Teach the build about betas and rcs (elastic#26066) Fix wrong header level inner hits: Unfiltered nested source should keep its full path Document how to import Lucene Snapshot libs when elasticsearch clients (elastic#26113) Use `global_ordinals_hash` execution mode when sorting by sub aggregations. (elastic#26014) Make the README use a single type in examples. (elastic#26098) ...
It currently indexes both users and tweets as their own types.
Closes #25978