For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 2 replies, 2 voices, and was last updated 11 years, 10 months ago by
tjrtech.
-
AuthorPosts
-
tjrtechMemberHello all. This is my first post here as I think I have finally hit a wall. Essentially, I am trying to integrate a search engine tool into an app I am building. The search tool only has to find words, not PDFs, docs, etc. It should find based on any part of the word (ie. if looking Dairlyand Milk, searching Milk would bring it up).
I thought I would stick to either Javascript or PHP and have tryed several of each. If it requries MYSQL, I am having a hard time incorporating that into MobiOne. Does anyone have any suggestions of search tools that can be integrated into an app using MobiOne? Even if that means exporting all the code into HTML and then editing afterwards. I am familiar with all Web technologies (PHP, Javascript, HTML5, CSS3, etc) as well as with native App building structures.
If it would be easier to develop the app as a webapp, that is completely fine although building as a native app would be preferred. Any and all ideas would be grewaty appreciated? Even if someone knows of an example app built with MobiOne that uses a similar type search tool.
For some added information, the search tool will search through entries on the HTML page (static, entered beforehand) as well as entries recorded by the user previously. These entries will be saved locally through the native app storage or HTML5 local storage, depending on which way this turns out.
Thank you so much in advance and hopefully with your gracious help, I can figure this out! Have a great day!
Regards,
TJRTech
October 21, 2013 at 6:41 pm #343597
support-michaelKeymasterLet me start by saying I’ve not developed a search mechanism before in a mobione app. I have researching client-side javascript text engines on my todo list. For example here are a few on my radar:
https://github.com/reyesr/fullproof
http://lunrjs.com/
http://www.trans4mind.com/personal_development/JavaScript/searchEngine.htmI’m not sure if/how you plan to index and search your content. A mobione app has access to local storage (key/value and web sql). Plus you can integrate other javascript libraries and custom html as you choose.
October 21, 2013 at 11:59 pm #343604
tjrtechMemberThank you for your advice, I really appreciate it. I just finished taking a closer look at the 3 options you mentioned. I think I might be able to use some of them, however the glitch is that they are static indexes. To explain what I mean, I will explain what the finished app should do.
Essentially, to keep it simple, the app will allow for user input to create a type of list (much like what you mentioned). Users can create items for that list. Then by way of a search tool, can find any of those items. What would be preferred is a simply search box. Once entered, it will bring the matched content below, preferably separated by a break or something.
These search tools would seem to work if I entered all the data in beforehand and then created the index from which to search. But this clearly will not work in the case of user entered data unless the javascript can somehow pull data from each entered value and parse them into the javascript for recovery.
I am going to keep looking. I know this must be possible. I just have to find a solution that will work. Thanks again and any other ideas would be greatly appreciated. We could possibly collaborate on trying to figure out a solution for this!
-
AuthorPosts