Re: How to use wild cards in Search

Martin Petras <[email protected]>
Newsgroups gmane.comp.jakarta.slide.user
Message-ID <[email protected]>
Hi Aslam,
I guess this is something you are looking for :)

http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-4d62118417eaef0dcb87f4370583f809848ea695

Remark this:
**Note: Leading wildcards (e.g. *ook) are not supported by the 
QueryParser (although Lucene could handle them -- see the comment in 
QueryParser.jj to enable these kind of queries -- search for "OG: to 
support prefix queries:").

So you have to edit Lucene indexer. Probably you will have to do some 
changes in Slide sources as well.

Regards
Martin

Aslam Bari wrote:
> Hello All,
> I am using DASL to search contents as well as Property search. I need some
> guideness how to use Wild Cards.
>
> For example:-
> <D:contains>???.txt</D:contains> // What it will search
> <D:propcontains><D:prop><D:displayname/></D:prop><D:literal>*jj*</D:literal></D:propcontains>
>
> Confuse with * , % and ? , _
> Plz let me clear.
>
> Also there is a big problem when i use 
>
> <D:contains>*****************line*</D:contains>
> The server gets hang and not working. How to restrict this?
>
> Thanks...
>   

____________________________________
*/Martin Petráš/*
Java Developer Junior

*/S&K Management Systems, s.r.o./*
Záhradnícka 72, SK-821 08 Bratislava
e-mail: petras //at character// skms.sk , www.skms.sk <http://www.skms.sk>


<http://www.skms.sk>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.