add lang_field

This commit is contained in:
Shinsuke Sugaya 2016-01-14 21:36:11 +09:00
parent 05e1a65267
commit c1b1254ec2
3 changed files with 7 additions and 4 deletions

View file

@ -53,11 +53,11 @@
</antcall>
<!-- langfield -->
<antcall target="install.plugin">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="repo.url" value="${maven.snapshot.repo.url}" />
<param name="plugin.groupId" value="org/codelibs" />
<param name="plugin.name" value="langfield" />
<param name="plugin.version" value="2.1.1" />
<param name="plugin.zip.version" value="2.1.1" />
<param name="plugin.version" value="2.1.2-SNAPSHOT" />
<param name="plugin.zip.version" value="2.1.2-20160114.121355-2" />
</antcall>
<!-- kopf -->
<get dest="${target.dir}">

View file

@ -25,6 +25,7 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
@ -123,7 +124,7 @@ public class FessXpathTransformer extends XpathTransformer implements FessTransf
final Document document = parser.getDocument();
final Map<String, Object> dataMap = new HashMap<String, Object>();
final Map<String, Object> dataMap = new LinkedHashMap<String, Object>();
for (final Map.Entry<String, String> entry : fieldRuleMap.entrySet()) {
final String path = entry.getValue();
try {

View file

@ -448,6 +448,7 @@
},
"content": {
"type": "langstring",
"lang_field": "lang",
"analyzer": "standard_analyzer",
"term_vector": "with_positions_offsets"
},
@ -514,6 +515,7 @@
},
"title": {
"type": "langstring",
"lang_field": "lang",
"analyzer": "standard_analyzer",
"term_vector": "with_positions_offsets"
},