[MonoTouch] In-app Search.

Nic Wise nicw at fastchicken.co.nz
Thu Mar 22 15:52:50 UTC 2012


Assuming the content doesn't change between app installs (ie, you have
to resubmit to apple to change it) you can build the index offline,
and just write something to query it on the phone. Should be minimal
on the memory.

You could extract the words from the HTML, break them up on space,
remove punctuation etc, then just have a table of words, a join table,
and a table of documents....

easy.

On Thu, Mar 22, 2012 at 15:16, jhandel at gmail.com <jhandel at gmail.com> wrote:
> Generally I am a big fan of Lucene.NET (I've run a 25Gig index on luceue
> with sub ms response times) I just wasn't sure with all the crazy Memory and
> filesystem stuff they do if porting it to run inside Mono is a realistic
> effort. :-)
>
> Thanks for the thought though.. I'll definitely check out whats changed and
> see if It can be cobbled together.
>
> Josh
> ________________________________
> From: René Ruppert [rene.ruppert at googlemail.com]
> Sent: Thursday, March 22, 2012 10:01 AM
> To: jhandel at gmail.com
> Cc: monotouch at lists.ximian.com
> Subject: Re: [MonoTouch] In-app Search.
>
> There is a .net version if Lucene. We are using that (but not on iOS)
> http://www.codeproject.com/Articles/29755/Introducing-Lucene-Net
>
> Grüße, René
>
> Am 22.03.2012 um 15:52 schrieb "jhandel at gmail.com" <jhandel at gmail.com>:
>
> Howdy all,
>   Before I go reinvent the wheel I figured I would ask.. We have an app that
> will host several hundred pages of content (local).. And our client would
> like to make the content searchable.. What kind of in-app search strategies
> have you guys tried to employ in the passed?
>
> I'm debating wrapping a C version of Lucene for MonoTouch but that seems
> like ALOT of work.. anyone have any toolkits or tricks they have used in the
> passed?  I was also thinking about perhaps integrating with Spotlight but I
> don't know how that would work from inside the app.
>
> Thanks
> Josh
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2


More information about the MonoTouch mailing list