I would like to clean the indexes file of certain documents. To do this I am trying to retrieve all documents in the systems through a java program. At the moment I use the Rest search api to retrieve all documents. But with this option I am finding I need to keep paging the results.
Do you know a way of reading all documents within a Java program. If I was using Lucene I would read the directory but with this option I get "no segments found in the directory.
Has anyone here got some experience of reading all documents within a java program ?
This topic has been locked.
Pinned topic read all documents in a program - java program
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Re: read all documents in a program - java program2012-11-16T10:30:11ZThis is the accepted answer. This is the accepted answer.Hi Xmax,
perhaps you can try using SIAPI StreamingSearch. The last time I used that feature was with OmniFind 8.5, but as the sample is still there for ICA 3.0 I would guess it will still work (besides the SIAPI Search is declared deprecated).
Have a look at the samples in <ES_INSTALL_ROOT>\samples\siapi\StreamingSearchExample.java
Your query would be : and theoretically that should return you all the documents...
Re: read all documents in a program - java program2012-11-16T12:52:06ZThis is the accepted answer. This is the accepted answer.
bfoyle 060001WDQ360 Posts
Re: read all documents in a program - java program2012-11-16T17:00:46ZThis is the accepted answer. This is the accepted answer.