lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amin Mohammed-Coleman <ami...@gmail.com>
Subject Re: Faceted Search using Lucene
Date Mon, 23 Feb 2009 07:20:38 GMT
Hi

Thanks just what I needed!

Cheers
Amin

On 22 Feb 2009, at 16:11, Marcelo Ochoa <marcelo.ochoa@gmail.com> wrote:

> Hi Amin:
>  Please take a look a this blog post:
> http://sujitpal.blogspot.com/2007/04/lucene-search-within-search-with.html
>  Best regards, Marcelo.
>
> On Sun, Feb 22, 2009 at 1:18 PM, Amin Mohammed-Coleman <aminmc@gmail.com 
> > wrote:
>> Hi
>>
>> Sorry to re send this email but I was wondering if I could get some  
>> advice
>> on this.
>>
>> Cheers
>>
>> Amin
>>
>> On 16 Feb 2009, at 20:37, Amin Mohammed-Coleman <aminmc@gmail.com>  
>> wrote:
>>
>>> Hi
>>>
>>> I am looking at building a faceted search using Lucene.  I know  
>>> that Solr
>>> comes with this built in, however I would like to try this by myself
>>> (something to add to my CV!).  I have been looking around and I  
>>> found that
>>> you can use the IndexReader and use TermVectors.  This looks ok  
>>> but I'm not
>>> sure how to filter the results so that a particular user can only  
>>> see a
>>> subset of results.  The next option I was looking at was something  
>>> like
>>>
>>> Term term1 = new Term("brand", "ford");
>>> Term term2 = new Term("brand", "vw");
>>> Term[] termsArray = new Term[] { term1, term2 };un
>>> int[] docFreqs = indexSearcher.docFreqs(termsArray);
>>>
>>> The only problem here is that I have to provide the brand type  
>>> each time a
>>> new brand is created.  Again I'm not sure how I can filter the  
>>> results here.
>>> It may be that I'm using the wrong api methods to do this.
>>>
>>> I would be grateful if I could get some advice on this.
>>>
>>>
>>> Cheers
>>> Amin
>>>
>>> P.S.  I am basically trying to do something that displays the  
>>> following
>>>
>>> Personal Contact (23) Business Contact (45) and so on..
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
>
>
> -- 
> Marcelo F. Ochoa
> http://marceloochoa.blogspot.com/
> http://marcelo.ochoa.googlepages.com/home
> ______________
> Want to integrate Lucene and Oracle?
> http://marceloochoa.blogspot.com/2007/09/running-lucene-inside-your-oracle-jvm.html
> Is Oracle 11g REST ready?
> http://marceloochoa.blogspot.com/2008/02/is-oracle-11g-rest-ready.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message