I am developing an app in which there will be around 1062 .xml files . Theses files are arranged in chapters , and navigation is also there . Now I want search feature on
these files. When i will search for any word , it should display me file names, line at which it occur . I have tried spot light search but there is problem , when any new file get added we have to list all keywords manually . Also i have look for Lucene search
but not found anything in swift 3 .
Can you please guide me on this ? Again I would like to thank you for your time and look forward to hearing back from you soon.
Thanks and Regards ,
Your question appears to be about writing an app rather than the Swift programming language itself, and so unfortunately is not a good fit for this forum. I’d suggest posting your question to a website such as StackOverflow or similar that is more suited to offer guidance on your specific issue.
P.S. Your question is also a bit unclear: you need to elaborate on “I want search feature on
these files. When i will search for any word , it should display me file names, line at which it occur” means. From your description,
grep -R -n may do what you want; why do you need Swift 3 or Lucene? Before posting this somewhere else, I would recommend reworking your question so that you clearly define what it is you need.