[symfony-users] Re: sfLucenePlugin for one-to-many relationship indexing

2008-03-08 Thread Carl Vondrick
On Saturday, March 08, 2008, SNake! wrote: > Could it be done by return the field as array and declare that field > as keyword , like: I am working on an elegant way to do this. Eventually the plugin will resolve the foreign relationships automatically. So, if you have a 1:m::book:author, the p

[symfony-users] Re: sfLucenePlugin for one-to-many relationship indexing

2008-03-08 Thread Carl Vondrick
On Saturday, March 08, 2008, SNake! wrote: > Actually I am using Luke to check my index, I found it seems to index > the field without the number (in the case using text type). > > And then I try to give the field like "[1],[2],[10]" as keyword type. > I try to query as  authorIDs:"\[1\]" but retu

[symfony-users] Re: sfLucenePlugin for one-to-many relationship indexing

2008-03-08 Thread SNake!
Could it be done by return the field as array and declare that field as keyword , like: In search.yml: ... Books: fields: authorids: keyword ... and in the model: function getAuthorIds(){ // mock result return array(1,2,10); } ... Or I have to do a customized indexer

[symfony-users] Re: sfLucenePlugin for one-to-many relationship indexing

2008-03-08 Thread SNake!
Actually I am using Luke to check my index, I found it seems to index the field without the number (in the case using text type). And then I try to give the field like "[1],[2],[10]" as keyword type. I try to query as authorIDs:"\[1\]" but return no result On 3月8日, 下午5時18分, wissl <[EMAIL PROTEC

[symfony-users] Re: sfLucenePlugin for one-to-many relationship indexing

2008-03-08 Thread Carl Vondrick
Also, check out: http://www.nabble.com/Lucene-and-n:m-td12695579.html On Saturday, March 08, 2008, wissl wrote: > 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

[symfony-users] Re: sfLucenePlugin for one-to-many relationship indexing

2008-03-08 Thread wissl
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 valu