フィールドタイプが混乱しています。 string
対strings
およびint
対ints
および他のデータ型のようなもの。フィールドタイプ文字列と文字列
次の4つの違いは何ですか?
<field name="string_multi" type="string" multiValued="true" indexed="true" stored="true"/>
<field name="string_single" type="string" indexed="true" stored="true"/>
<field name="strings_multi" type="strings" multiValued="true" indexed="true" stored="true"/>
<field name="strings_single" type="strings" indexed="true" stored="true"/>
文書があるとすれば、hashtags
という名前のフィールドにはどうしたらいいですか?
String multivalued
またはstrings multivalue
またはstrings without multivalue
、まあ
{
"polarity":0.0,
"text":"RT @socialistudents: Vlad - we go to NUS conference not just as individuals but as members of Socialist Students #SocStu17",
"created_at":"Sun Feb 12 19:28:34 +0000 2017",
"hashtags":[
"hashtag1",
"hashtag2"
],
"subjectivity":0.0,
"retweet_recount":4,
"id":830861171582439424,
"favorite_count":0
}
「フィールド名」を定義するときに混乱が生じました。これにより、属性 'multiValued'を宣言できます。 'さて、彼らは同じであることが分かります。ちょっと混乱し、 'field name'中の' multiValued'を冗長にします。 'multiValued'は' field type'によって確定されるので、 –
はい、私は2番目に「s」を見逃してしまいました。固定 – Jayce444
ええ、あなたはフィールドでも同様に 'マルチ値'を宣言することができます。だからあなたのハッシュタグデータ構造を与えれば、 'multiValued =" true "'をフィールド定義に置くことができます – Jayce444