这对我有用:$results = $finder->find('muj*');
但是当我尝试$results = $finder->find(array('muj*', 'hom*));
时,我得到了这个:
SearchPhaseExecutionException [无法执行阶段[查询],全部 碎片失败; shardFailures {[qTMnzJeGTu-YVumR2xLW1Q] [search] 1: RemoteTransportException [[星雅轩] [INET [/192.168.1.83:9302] [搜索/相位/查询]]; 嵌套:SearchParseException [search:from [-1],size [-1]:Parse 失败[无法解析源代码 [{ “0”: “MUJ *”, “1”: “坎*”, “查询”:{ “MATCH_ALL”:{}}}]]];嵌套: SearchParseException [search:from [-1],size [-1]:Parse Failure [No 元素[0]的解析器]; } {[LgfD_idnTtmv3JHcMPnkmw] [搜索] [0]: SearchParseException [[search] [0]:from [-1],size [-1]:Parse Failure [无法解析源代码 [{ “0”: “MUJ *”, “1”: “坎*”, “查询”:{ “MATCH_ALL”:{}}}]]];嵌套: SearchParseException [[search] [0]:from [-1],size [-1]:Parse Failure [No 元素[0]的解析器]; } {[vpaWi0XRT8eo7UYtgFFsag] [搜索] [3]: RemoteTransportException [克林特 巴顿] [INET [/192.168.1.83:9301] [搜索/相位/查询]];嵌套: SearchParseException [[search] [3]:from [-1],size [-1]:Parse Failure [无法解析源代码 [{ “0”: “MUJ *”, “1”: “坎*”, “查询”:{ “MATCH_ALL”:{}}}]]];嵌套: SearchParseException [[search] [3]:from [-1],size [-1]:Parse Failure [No 元素[0]的解析器]; } {[LgfD_idnTtmv3JHcMPnkmw] [搜索] [2]: SearchParseException [[search] [2]:from [-1],size [-1]:Parse Failure [无法解析源代码 [{ “0”: “MUJ *”, “1”: “坎*”, “查询”:{ “MATCH_ALL”:{}}}]]];嵌套: SearchParseException [[search] [2]:from [-1],size [-1]:Parse Failure [No 元素[0]的解析器]; } {[qTMnzJeGTu-YVumR2xLW1Q] [搜索] [4]: RemoteTransportException [[星雅轩] [INET [/192.168.1.83:9302] [搜索/相位/查询]]; 嵌套:SearchParseException [[search] [4]:from [-1],size [-1]:Parse 失败[无法解析源代码 [{ “0”: “MUJ *”, “1”: “坎*”, “查询”:{ “MATCH_ALL”:{}}}]]];嵌套: SearchParseException [[search] [4]:from [-1],size [-1]:Parse Failure [No 元素[0]的解析器]; }]
对我而言,这很奇怪,因为文档说find()
承认an array as parameter。