Ranged Queries as XML in ft:query

Gus Riva <[email protected]>
Newsgroups gmane.text.xml.exist
Message-ID <CAG92wEc3fcbE1oBJcQfx5VH7RLCUFN4rLyGO02U9w_zw08q2Mw@mail.gmail.com>
Hello,

I am trying to create a query for the lucene index using an xml fragment as
described here:
https://exist-db.org/exist/apps/doc/lucene

Let's say my query is something like this in the "normal" syntax:

for $hit in collection($config:data-index)//tei:TEI[ft:query(.,
textcontent:$guess AND timemin:[0000 TO 1600], $query_options)]

How would I write the query in XML? I have this for the first part:

<query>
  <wildcard field="textcontent">{$guess}</wildcard>
</query>

But I have no idea which element to use for the ranged query ( timemin:
[0000 TO 1600] ). The example in the documentation just says:

Ranged queries using TO are also supported. Suppose you have marked dates
and wish to return only results between 1600 and 1610.

let $query := "date:[1600 TO 1610]"
return ft:search($col, $query)//exist:match

It does not say how to do it using the XML definition of the query. Non of
the listed elements (wildcard, term, etc.) seems to work.

I would really appreciate some help on this. Thanks a lot!

Gustavo Fernández Riva
Wissenschaftlicher Mitarbeiter
Universität Heidelberg – Universitätsbibliothek

Plöck 107-109, D-69117 Heidelberg
Tel.: +49-(0)6221-54 2033
Mail: [email protected]
<[email protected]>

_______________________________________________
Exist-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/exist-open
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.