in reply to What DB style to use with search engine
There is a good reaason why search engines don't allow full regex searches--they are simply too slow. You'd be better only allowing keyword searches.
But, if you decide to try the big file route, a couple of things that will help are:
This makes searching for phrases that span lines much simpler and much, much faster.
If you need to obtain position information, re-search the actual files once you've located them from the master file.
If you can distribute these parts across different spindles, you'll gain the maximum advantage of the parallelism. Otherwise, you may not see much benefit due to head thrash.
None the less, by making each file a single long line in the master, the ratio of cpu to IO will be greatly improved.
If you can limit a first pass to keywords only, then building an inverted index would be the fastest way of trimming the dataset. You could then allow a full regex search to be run on the subset of documents.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What DB style to use with search engine
by halfcountplus (Hermit) on Nov 10, 2009 at 23:02 UTC | |
|
Re^2: What DB style to use with search engine
by creamygoodness (Curate) on Nov 11, 2009 at 16:43 UTC | |
by BrowserUk (Patriarch) on Nov 11, 2009 at 17:14 UTC |