So indexing works so far (what you can tell), but your search does not return the results you want? Or are you not sure about the correct indexing process itself?
What looks a little bit strange to me is that you index the field "authorIDs" as a keyword, but your query searches for tokenized values. Perhaps try to change the field type to text or adapt your query for testing purpose (if the field is indexed correctly) to "authorIDs:1,10,30". To check, what exactly is written to the index I suggest using Luke (http://www.getopt.org/luke/). On 8 Mrz., 04:51, "SNake!" <[EMAIL PROTECTED]> wrote: > Dear guys, > > I am new to sfLucenePlugin and Lucence, I just wonder I have a class > for example: Book, each Book could have multiple Authors, so now I > have a field "authorIDs" to indexed as keyword like : "1,10,30" > > but I cannot get any result as I query as "authorIDs:10 OR authorIDs: > 1" > > Could any one share about the experience on indexing one-to-many > relationship? > Did I use the wrong way? > > Snake --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
