Task #2678

Mis à jour par Sebastien Jacquot il y a presque 6 ans

Queries of type: [_.sp_n="97"] expand to sp
are very heavy. There are some optimization in /org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/query/SubcorpusCQLQuery.java /org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/query/QueryPart.java to avoid them when the part is of "text" level:

<pre>
if ("text".equals(structure.getName())) { // optimisation only for the text structure
queryString = "<"+property.getFullName()+"=\""+CQLQuery.addBackSlash(value)+"\">[] expand to "+structure.getName();
} else {
queryString = "[_."+property.getFullName()+"=\""+CQLQuery.addBackSlash(value)+"\"] expand to "+structure.getName();
}
</pre>

to generate a query of type: <text_booktitle="Waterloo">[] expand to text
Is there anyway to extend this optimization?
eg. [_.sp_n="97"] expand to sp
is equivalent to:
<sp_n="97">[] expand to sp

Retour