Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18486

Re: Implement offline site search?

Newsgroups comp.lang.javascript
Subject Re: Implement offline site search?
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <haWdnRUFFpDr0IbMnZ2dnUVZ5uidnZ2d@giganews.com> <kfgi4k$6ke$1@dont-email.me>
Date 2013-02-14 10:56 +0100
Message-ID <XnsA1676F62F3772eejj99@194.109.133.133> (permalink)

Show all headers | View raw


Martin Leese wrote on 13 feb 2013 in comp.lang.javascript:

> This approach would be OK only for
> occasional searches of a small website.  An
> approach that scales would be to search your
> website once and create an index.  Then
> search the index multiple times.  (Obviously
> the index would need to be rebuilt when the
> website changes, but this could be done
> overnight or whenever the system is little
> used.)

Methinks the index, being a database, needs only to be corrected on a 
parhaps nightly basis. The serverside action can very well identify pages 
that are changed since the last correction, and only rebuild the data of 
that page.

Now and then, a hand-started total new index database could be done.

> JavaScript could be run on your intranet
> server to build the index, but is more
> typically run via the clients' web browser.

"Typically"? [as in: "typically programmers are very inefficient"?]

What is "run via", do you mean "initialized by" or "run on" a web page? 

> The program to build the index could be
> implemented in any number of languages; I
> see no particular advantage in using
> JavaScript for this. 

I do, this is a Javascript NG, so presumably  the audience is well versed 
in this language.

> Using JavaScript on the clients to search the index makes sense.

Why? Does it just make sense or does it make mor sense than to do this on 
the server?

If the client would index the text-result of the pages loaded to index 
that, it would be sensible, but forgoing selected pages that have changed,
and not being able to interact efficiently with the database on the server 
would not.

Depending on size and dynamics of a site, I would vote for serverside 
updating.






-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Implement offline site search? "Robert Crandal" <rcranz143101@gmail.com> - 2013-02-13 01:23 -0700
  Re: Implement offline site search? Tim Slattery <Slattery_T@bls.gov> - 2013-02-13 09:04 -0500
    Re: Implement offline site search? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-13 15:23 +0100
    Re: Implement offline site search? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-13 15:33 +0100
  Re: Implement offline site search? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-13 15:06 +0100
    Re: Implement offline site search? "Robert Crandal" <rcranz143101@gmail.com> - 2013-02-17 02:24 -0700
      Re: Implement offline site search? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-17 13:18 +0100
        Re: Implement offline site search? John G Harris <niam@jghnorth.org.uk.invalid> - 2013-02-17 16:14 +0000
        Re: Implement offline site search? "Robert Crandal" <rcranz143101@gmail.com> - 2013-02-17 11:54 -0700
          Re: Implement offline site search? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-17 20:52 +0100
            Re: Implement offline site search? "Robert Crandal" <rcranz143101@gmail.com> - 2013-02-17 15:10 -0700
              Re: Implement offline site search? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-17 23:16 +0100
              Re: Implement offline site search? Andrew Poulos <ap_prog@hotmail.com> - 2013-02-18 09:54 +1100
                Re: Implement offline site search? John G Harris <niam@jghnorth.org.uk.invalid> - 2013-02-18 10:17 +0000
                Re: Implement offline site search? "Robert Crandal" <rcranz143101@gmail.com> - 2013-02-18 11:43 -0700
                Re: Implement offline site search? Andrew Poulos <ap_prog@hotmail.com> - 2013-02-19 06:27 +1100
                Re: Implement offline site search? Andrew Poulos <ap_prog@hotmail.com> - 2013-02-19 06:33 +1100
            Re: Implement offline site search? Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-02-18 12:23 +0000
  Re: Implement offline site search? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2013-02-13 10:23 -0700
    Re: Implement offline site search? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-14 10:56 +0100
      Re: Implement offline site search? John G Harris <niam@jghnorth.org.uk.invalid> - 2013-02-14 10:20 +0000
        Re: Implement offline site search? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-14 11:26 +0100
  Re: Implement offline site search? Wally W. <ww84wa@aim.com> - 2013-02-14 08:07 -0500
  Re: Implement offline site search? Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-02-14 22:47 +0000
  Re: Implement offline site search? Scott Sauyet <scott.sauyet@gmail.com> - 2013-02-14 18:49 -0800

csiph-web