You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Otis Gospodnetic <ot...@yahoo.com> on 2002/04/05 18:41:26 UTC

Re: Custom queries

name != pradeep ==> -name:pradeep

I think there is also support for the date query below, but I haven't
used it yet, so I don't want to give you any wrong information.

Otis


--- Pradeep Kumar K <pr...@robosoftin.com> wrote:
> Hi lucene friends!
> 
> Is there any way to create custom queries.
> Just for example I want to create a query like "name != 'pradeep' 
> creationDate>dateVar".
> 
> TIA
> Pradeep
> 
> 
> --------------------------------------------------------------
> Robosoft Technologies, Mangalore, India
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Custom queries

Posted by Pradeep Kumar K <pr...@robosoftin.com>.
Hi all

thanks Otis.

I want to make my question bit more clearer
As we know we can create a query by

Query qr=QueryParser.parse(strToFind,keyword,new StandardAnalyzer())


Is it possible to pass
   strToFind = "name!=pradeep and creationDate>dateVar" (or
as specified by Otis -name:pradeep ) and keyword as null

   Query qr=QueryParser.parse(strToFind,null,new StandardAnalyzer());

so that it should return a lucene query corresponding for strToFind I 
specified.
The reason for my doubt is in my webObjects application I will be 
creating a custom queryString according to the users selection  on the 
web page and I want to pass the same query String to lucene.



TIA
Pradeep






Otis Gospodnetic wrote:

> name != pradeep ==> -name:pradeep
> 
> I think there is also support for the date query below, but I haven't
> used it yet, so I don't want to give you any wrong information.
> 
> Otis
> 
> 
> --- Pradeep Kumar K <pr...@robosoftin.com> wrote:
> 
>>Hi lucene friends!
>>
>>Is there any way to create custom queries.
>>Just for example I want to create a query like "name != 'pradeep' 
>>creationDate>dateVar".
>>
>>TIA
>>Pradeep
>>
>>
>>--------------------------------------------------------------
>>Robosoft Technologies, Mangalore, India
>>
>>
>>
>>--
>>To unsubscribe, e-mail:  
>><ma...@jakarta.apache.org>
>>For additional commands, e-mail:
>><ma...@jakarta.apache.org>
>>
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 



--------------------------------------------------------------
Robosoft Technologies, Mangalore, India



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>