IDEA: Text search engine tailored to a specific schema
Rikki Cattermole via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 16 20:56:59 PDT 2015
On 17/04/2015 2:26 p.m., Casey wrote:
> O.K. This is just an idea that's been running through my head, so I
> figured someone here may be interested.
>
> Text search engines that I know of are meant to index unstructured data
> or apply a schema to data at runtime. However, since D has the ability
> to do things at compile time, perhaps it would be an ideal solution for
> situations where a specific schema is used and much be searched on.
> Instead of generic data structures used to represent the data,
> specialized data structures could be created at compile time to allow
> for better indexing and performance.
>
> That's about as far as I got with it. To me, it seemed interesting
> enough to share.
>
> Enjoy.
This sounds a lot like an ORM. Only the schema is specified as a
struct/class. In this case it wouldn't need to generate anything as it
has already been done.
More information about the Digitalmars-d
mailing list