我正在尝试将未分析的原始字段添加到所有当前字段。
<?php
include("header.php");
$inv = mysql_query("SELECT `item_id` FROM `user_items` WHERE `user_id`='".$_SESSION['uid']."'") or die(mysql_error());
$linv = mysql_fetch_array($inv);
//Need to display all item_id's from the user_items table where the user_id field = $_SESSION['uid'] (or 1 for testing purposes.)
//For some reason, every foreach and while loop method i have tried is giing me false data (1,1). The right data should be: 1, 4.
//The database table contains 3 columns: slot_id, user_id, item_id.
//Those columns contain the following data: 1 1 1
// 2 2 4
// 3 1 4
//surely this should return $linv as an array containing the values 1 and 4? What's going on?
}
include("footer.php");
?>
但是当我重新索引时,我收到以下错误消息:
引起:org.elasticsearch.index.mapper.MapperParsingException:Root 解析后类型映射不为空!
有任何线索吗?