|
|
-
filtering results per field?
Francisco Borges 2010-11-01, 17:32
Hello,
I would like to search several fields while applying different Filter's to the results of different fields.
Is it possible to (efficiently) filter out results according to which fields they are coming from? I've been navigating the code and Javadocs, and haven't found any way to do it.
One alternative would be to search for each field (or groups of fields) separately. Can anyone comment on the performance impact and scalability of searching separately per field?
Kind regards, -- Francisco
-
Re: filtering results per field?
Erick Erickson 2010-11-01, 19:00
I'm not quite following here. You can construct filters on any field you want, and combine them as you choose, then apply the resulting filter to your query. See TermsFilter for instance. Or, your filter could #be# your query.
If this is gibberish, could you give an example or two showing what you're trying to accomplish?
Best Erick
On Mon, Nov 1, 2010 at 1:32 PM, Francisco Borges <[EMAIL PROTECTED] > wrote:
> Hello, > > I would like to search several fields while applying different Filter's to > the results of different fields. > > Is it possible to (efficiently) filter out results according to which > fields > they are coming from? I've been navigating the code and Javadocs, and > haven't found any way to do it. > > One alternative would be to search for each field (or groups of > fields) separately. Can anyone comment on the performance impact and > scalability of searching separately per field? > > Kind regards, > -- > Francisco >
-
Re: filtering results per field?
findbestopensource 2010-11-02, 13:45
Hello
Doing single search with multiple filters will give faster results. Doing search per field (multiple saerch) and combining the results is a bad idea.
Regards Aditya www.findbestopensource.com On Mon, Nov 1, 2010 at 11:02 PM, Francisco Borges < [EMAIL PROTECTED]> wrote:
> Hello, > > I would like to search several fields while applying different Filter's to > the results of different fields. > > Is it possible to (efficiently) filter out results according to which > fields > they are coming from? I've been navigating the code and Javadocs, and > haven't found any way to do it. > > One alternative would be to search for each field (or groups of > fields) separately. Can anyone comment on the performance impact and > scalability of searching separately per field? > > Kind regards, > -- > Francisco >
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext