I see,you assumed that each record of keywords contains only one word,right?
But there is no limit on how many words there can be in each record.
2009/7/5 Wooble :
>
> If I was implementing this, I'd probably have an Entity with a
> reference to the document and a list of keywords, so if I want
If I was implementing this, I'd probably have an Entity with a
reference to the document and a list of keywords, so if I want the
list of keywords I just have it already. Clearly this is not how
you're storing your keywords, but you don't tell us how you are
storing them, just that they exist. W
Do you really get me right?
Here is an example to get rid of the pain of abstraction.
If the document contains these words:'oracle', 'java', 'microsoft', 'ccna'
and then search these keywords respectively:
1.java
2.oracle
3.notmatch
then obviously,the 1st and 2nd search will match with the doc
On Jul 3, 8:47 am, Mr Shore wrote:
> By default we search a keyword against many documents.
>
> But now I've restored 1M keywords in datastore,
>
> I want to find out which of 1M keywords match a specified document.
>
> Is there an efficient solution?
This depends entirely on your model, which