lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From דנה שגיא <danasagi...@gmail.com>
Subject Complex Query parsing: Query-> String/XML/JSON/other -> Query (java)
Date Sun, 06 Nov 2016 15:29:40 GMT
Hi,
I have two different processes which run separately (could be different
machines, different times). the first one creates an xml file with relevant
data (strings) which the second process gets as an input (including a
complex lucene query).
Until now, I used Query.toString() to save the Query into the xml file
because the second process only printed the query.
Now I want the second process to use this query and get the TopDocs
according to it.
I read about QueryParser and some tools to create a Query from an input
(String/ xml) but haven't saw a way to serialize the Query in the first
place (toString() didn't work well).

my question is, how can I save an existing Query into a file in the first
process, so the second one could get the query from the file and use it
(for example with QueryParser or any other tool)?
Thanks,
Dana

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message