howto make a query to match both two fields of a searchable-component while using searchable plugin?

View: New views
4 Messages — Rating Filter:   Alert me  

howto make a query to match both two fields of a searchable-component while using searchable plugin?

by Haotian Sun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys,

I guess this is a question more associated to Lucene. So basically, I
have a domain A which contains a seachable-component class called
metaData that has name and value properties. Now I managed to make a
search over either the name or value property of metaData, but my
question is how I can make a search to get the exact result that match
both name and value, e.g. if I enter the query: some name=some value,
and ignore those results that match part of the query.

Cheers

Haotian

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: howto make a query to match both two fields of a searchable-component while using searchable plugin?

by Haotian Sun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Anyone has any ideas?

Thanks

Haotian

Haotian Sun wrote:

> Hi guys,
>
> I guess this is a question more associated to Lucene. So basically, I
> have a domain A which contains a seachable-component class called
> metaData that has name and value properties. Now I managed to make a
> search over either the name or value property of metaData, but my
> question is how I can make a search to get the exact result that match
> both name and value, e.g. if I enter the query: some name=some value,
> and ignore those results that match part of the query.
>
> Cheers
>
> Haotian
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: howto make a query to match both two fields of a searchable-component while using searchable plugin?

by Konstantyn Smirnov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Not sure what you really mean, but the AND-query looks like

"+name:someName +value:someValue"

in native Lucene query syntax

Re: howto make a query to match both two fields of a searchable-component while using searchable plugin?

by Haotian Sun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, Konstantyn!

haotian

Konstantyn Smirnov wrote:
> Not sure what you really mean, but the AND-query looks like
>
> "+name:someName +value:someValue"
>
> in native Lucene query syntax
>  


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email