Discussion Forums  >  Uncategorized

Replies: 10    Views: 493

basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
06/06/11 06:36 PM (14 years ago)

Search Not finding words within a page...(iOS)

I want the search option I've set up to search throughout the HTML pages in the same menu. I've got towns listed in 30-odd HTML text files and I want people to be able to find their town by using the search option at the top of the page. How can I get this to work? Currently it seems to search only menu titles, not within pages..... Thanks
 
TheHoogler
I hate code!
Profile
Posts: 152
Reg: Feb 10, 2011
Anchorage, AK
1,520
like
06/06/11 07:37 PM (14 years ago)
The Buzztouch search function will only search navigation titles. Are you using something else?
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
06/06/11 08:38 PM (14 years ago)
No, I'm using the buzztouch one :-( Anyone know of a way to get a search to do what I want?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/07/11 12:14 AM (14 years ago)
The only way to do this is to setup a backend search. a) Make a simple html page for input. one text box + a search button. b) Post the value to your backend server c) Backend server searches you content d) Backend server outputs a 'menu' of options to choose from. Menu options load a web-page with details about the result. I can think of no other way to do this. The same challenge would exist if you were, say, Google. Tons of data, simplified way to find it. This type of thing will always need to be done on the cloud. Unless of course you built a sophisticated array of words, every word, a 'text search' within the app. You could do this but it would be terribly slow for a mobile device to scan html text.
 
peter
I hate code!
Profile
Posts: 95
Reg: Jan 21, 2011
netherlands
1,250
like
06/07/11 12:06 PM (14 years ago)
Hi, is this related to your previous question best way to add a list of locations with phone/link to directions map/etc? If that is the case, I would suggest to use the Map Locations screen as your entry point, and clicking the location redirecting the user to the correct info page (in html). FYI: I have made one large html file with all locations info, and when the user clicks on a location on the map, the DATAURL point to the large html file with an named anchor (html code) as variable. So when displaying the html page jumps to the right position in the html file to display additional info.
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
06/07/11 12:10 PM (14 years ago)
oh of course.....yes. Thanks! Got too many hats on....keep forgetting things.....:-) the anchor option is good too. I like that. Makes things easier.
 
Mark Berthelemy
Aspiring developer
Profile
Posts: 3
Reg: Aug 15, 2011
Belper
30
like
08/15/11 06:09 AM (14 years ago)
@David, I've been using Zoomsearch (a windows application that indexes webpages and creates a search facility on otherwise static web sites). I'm not a mobile tech expert, so not sure how feasible it would be to incorporate such functionality within an app? Cheers, Mark
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/15/11 11:43 PM (14 years ago)
Hi in Belper: Searching the text of the actual content is super tough for tons of reasons. About the only way to pull this off is doing it server side. User enters term, the app posts to the server, the server returns a JSON list of menu items to load the screen containing the search term. Very doable (and easy) for a .php person, very tough and probably impossible for a novice. Sounds like Zoomsearch does the exact same thing locally on your machine. Cool stuff.
 
Mark Berthelemy
Aspiring developer
Profile
Posts: 3
Reg: Aug 15, 2011
Belper
30
like
08/16/11 01:36 AM (14 years ago)
@David. Sort of... Let's say you build a flat HTML website with 100 pages. You then run Zoomsearch, which indexes those pages and then provides the javascript functions to add to your site to use the index. I can see, though, that to do that with Buzztouch, would require a lot of server resources to do the indexing. Probably not what you'd want to do at the moment.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/16/11 02:05 AM (14 years ago)
Yup, exactly. I've done lots of projects like this in the past where the HTML itself was contained in a database and easily indexed / searched. In the case of the control panel, almost all the content comes from somwhere else, not our backend system. Some is held by us but not as much as most folks realize. Plus, PDF's, Word, XLS, etc. adds an additional layer of complexity. We could probably add some logic with words like 'this screen type is not included in search results' or something like that and only allow searchable HTML docs that resided on our server. But, adding the complexity for the user to understand also presents other problems. We'll eventually put something together that show HOW to do this with HTML in a folder where PHP script creates the index. Not sure when but it's reasonable to think of putting a tutorial together or something?
 
Mark Berthelemy
Aspiring developer
Profile
Posts: 3
Reg: Aug 15, 2011
Belper
30
like
08/16/11 02:07 AM (14 years ago)
The tutorial like a good idea. Probably not a major priority though...
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.