Thanks teesub.
I will examine this and comeback to you. The APIs and classes are almost same in JAVA Lucene and Lucene.Net.
Regards
I have indexed a dictionary using Lucene.Net.
I tried to get the results using alphabetical search like A*.
In some of the cases I get System Error Exception.
I am new to Lucene.Net and could not diagnise the problem. I am Appending the code o create Index document and the query code.
Request experts comments.
Thanks a lot in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: teesubPosted on 2009-01-02 at 15:37:40ID: 23283218
Hello,
ount(...) [please lookup the .NET equivalent] but again its not foolproof.
I am not sure about .NET, but from my experience with lucene in JAVA, wildcard or prefix querries tend to throw TooManyClauses exception. So you might want to check that.
This is because the query is rewritten enumerating the terms which satify your query, for example if you have Abc, Acd, Ade etc terms in your "english" field then your querry for english:A* will be rewritten as english:(Abc OR Acd OR Ade).
The more the wildcard is near the start of your search term, the problem is bigger.
One way to get around of this is BooleanQuery.setMaxClauseC
The good way to do this is to get a ConstantScoreQuery from a WildCardFilter. But I can help you only with JAVA code snips...
Let me know if this helped or you need more information.