Re: Problems with ItemBasedRecommender with Lucene

2009-09-17 Thread Thomas Rewig
Oh, I overlooked the simplest way to do that. You're right, tokens are the key to this problem. It works pretty well. It would be perfect if I use payloads. I read your advice http://www.lucidimagination.com/blog/category/payloads/. You store the payloads with your PayLoadAnalyzer in this way:

Re: Problems with ItemBasedRecommender with Lucene

2009-09-17 Thread Grant Ingersoll
On Sep 17, 2009, at 5:06 AM, Thomas Rewig wrote: Oh, I overlooked the simplest way to do that. You're right, tokens are the key to this problem. It works pretty well. It would be perfect if I use payloads. I read your advice http://www.lucidimagination.com/blog/category/payloads/ . You stor

Re: Displaying search result data - stored fields vs external source

2009-09-17 Thread Savvas-Andreas Moysidis
Hello , I would also prefer to store the content in the index because, as Erick points out this leads to a more simplified design but also because it allows me to preserve the relevance sort. If you store only the item id in the index then when extracting all the other required data from supp

Re: Counting search results

2009-09-17 Thread Mathias Bank
Hello, I have tried your method, but it doesn't work. set will be null after applying BitSet set = filter.bits(reader); I haven't found any reason for this. Additionally, the bits method is deprecated and it is mentioned to use "getDocIdSet". But this set does only provide an iterator, no hash

How to perform a phrase "begins with" query?

2009-09-17 Thread Paul_Murdoch
Hi all, Since you can't (and it doesn't make sense to) use wildcards in phrase queries, how do you construct a query to get results for phrases that begin with a certain set of terms? Here are some theoretical examples... Example 1 - I have an index where each document contains the content

Re: How to perform a phrase "begins with" query?

2009-09-17 Thread AHMET ARSLAN
> Since you can't (and it doesn't make sense to) use > wildcards in phrase > queries, how do you construct a query to get results for > phrases that begin with a certain set of terms?  > Here are some theoretical examples... > > > Example 1 - I have an index where each document contains > the co

RE: New "Stream closed" exception with Java 6 - solved

2009-09-17 Thread Chris Hostetter
: It turns out that the cause of the exceptions is in fact adding an item : twice - so you were correct right at the start :-) I ran a test where I glad to see it all worked out. : Just a minor point: isn't Lucence in a position to detect the duplicate : insertion attempt and flag it with so

Re: How to perform a phrase "begins with" query?

2009-09-17 Thread Mark Harwood
Since you can't (and it doesn't make sense to) use wildcards in phrase queries, You can with this: http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/misc/src/java/org/apache/lucene/queryParser/complexPhrase/ Discussion here: http://tinyurl.com/lrnage Cheers, Mark

Re: Combining hits from multiple documents into a single hit

2009-09-17 Thread Chris Hostetter
Assuming i understand you correctly, then... 1. properties only exist as part of a single article (no articles share a complex property) 2. you don't have any need to ever return searchese on properties, they exist just to add in searching for articles. IF that's correct, then the idea i w

Re: Filtering question/advice

2009-09-17 Thread Chris Hostetter
FWWI: a test case with multiple asserts is more useful if you clarify where it failes ... ie: show us the failure message, or put a comment on athe line of the assert that fails. i didn't run your testcase, but skimming it a few things jumpt out at me that might explain whatever problem you ar