lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <karl.wet...@gmail.com>
Subject Re: retrieve all docs efficiently - just one field
Date Wed, 11 Jun 2008 13:43:11 GMT

11 jun 2008 kl. 09.38 skrev Johannes Christen:
>
> That might be a solution in this case, but I have the same kind of  
> problem in another case.
> We index documents from an NTFS source. One field is the URI of the  
> document.
> After a query has been processed, we perform an access check on the  
> hits to ensure the user has access rights to open the document. If  
> we have a big result set it takes very long to retrieve the URIs  
> from all the hits, which we need to perform the access check against  
> the file system.

How many users usually have access to any given document? Can't you  
just index them with the document?

> Any good solution for this?
> I think a fix document ID in lucene would help in this cases a lot.  
> The mapping between lucene documents and other systems (e.g. Oracle)  
> would be much faster.

LUCENE-879 is a proof of concept that shows how you can enforce the  
Lucene document numbers if you really want to go that way.


        karl

>
>
> 	Jo
>
> -----Urspr√ľngliche Nachricht-----
> Von: Karl Wettin [mailto:karl.wettin@gmail.com]
> Gesendet: Mittwoch, 11. Juni 2008 01:55
> An: java-user@lucene.apache.org
> Betreff: Re: retrieve all docs efficiently - just one field
>
>
> 11 jun 2008 kl. 00.35 skrev 1world1love:
>>
>> We have our lucene index and we want to search the section text for
>> the word
>> "panama"
>>
>> AND
>>
>> We want to select from the demographics table where age > 50.
>> --
>>
>> Now I need to intersect the master table IDs from my lucene hits and
>> my
>> table results.
>
> I might be missing something here -- can't you just add the age field
> to the index and include that in your query?
>
>
>             karl
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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