I'm trying to improve a search algorithm of an iOS app, which offers some magazines with a lot of articles. To do that I used the S4LuceneLibrary of Micheal Papp (git repo), which is a n iOS equivalent to the full-featured text search engine library of Apache Lucene. The problem is, that the search now is very incosistent...that means the search after specific words takes sometimes very long and on the other hand sometimes not.
That's a list of words, I was searching for, and the time the search took:
- Berlin (34 hits) -> 3,5 seconds
- Tag (29 hits) -> 8,3 seconds
- Haus (3 hits) -> 3,6 seconds
- Straße (28 hits) -> 8 seconds
- Raumfahrt (5 hits) -> 6,2 seconds
- Astronomie (9 hits) -> 1 second
So the results are kind of different, but I thought it should take the same time for every search phrase. Do you know where is the difference?
Thanks in advance :)