SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: Lucene boolean query max clause count problem

This question is answered.


Permlink Replies: 26 - Pages: 2 [ 1 2 | Next ] - Last Post: Nov 26, 2011 3:45 AM Last Post By: pylxwzhj
lauri

Posts: 37
Registered: 12/4/07
Lucene boolean query max clause count problem
Posted: Mar 26, 2008 4:47 AM
 
  Click to reply to this thread Reply
Hi,

Caused by: org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024
at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:165)
at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:156)
at org.apache.lucene.search.MultiTermQuery.rewrite(MultiTermQuery.java:63)
at org.apache.lucene.search.WildcardQuery.rewrite(WildcardQuery.java:54)
at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:370)
at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:385)
at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:151)
at org.apache.lucene.search.MultiSearcher.rewrite(MultiSearcher.java:273)
at org.apache.lucene.search.Query.weight(Query.java:94)
at org.apache.lucene.search.Hits.<init>(Hits.java:72)
at org.apache.lucene.search.Searcher.search(Searcher.java:55)
at org.compass.core.lucene.engine.transaction.AbstractTransaction.findByQuery(AbstractTransaction.java:172)

Could compass wrap Lucene BooleanQuery.setMaxClauseCount in some convenient way? Lucene seems to perform a wildcard search by first finding all the matches for the wild card search, and then doing another query with the exact terms extracted from the wildcard search. If more than 1024 different terms are found for the wildcard search (try "*a" with your data), an the exception above is thrown.

Have you implemented any handy workarounds for this?
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: Lucene boolean query max clause count problem
Posted: Mar 26, 2008 8:45 AM   in response to: lauri in response to: lauri
 
  Click to reply to this thread Reply
Compass can wrap it, but its a static method, you can call it yourself as well. It can certainly be part of compass settings so you won't have to code it, open a jira issue.

There is no magic in Compass to circumvent this in Lucene..., sorry.
lauri

Posts: 37
Registered: 12/4/07
Re: Lucene boolean query max clause count problem
Posted: Jun 12, 2008 6:53 AM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
Which method is it?

Cheers,
Lauri
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: Lucene boolean query max clause count problem
Posted: Jun 12, 2008 1:56 PM   in response to: lauri in response to: lauri
Correct
  Click to reply to this thread Reply
BooleanQuery#setMaxClauseCount
saffron

Posts: 148
Registered: 1/8/08
Re: Lucene boolean query max clause count problem
Posted: Oct 27, 2009 1:16 PM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
is there a compass setting for specifying this?
discount oakley...

Posts: 35
Registered: 8/20/11
Re: Lucene boolean query max clause count problem
Posted: Aug 20, 2011 4:18 AM   in response to: lauri in response to: lauri
 
  Click to reply to this thread Reply
Looking attractive and smart in the fingers of the other people has been the aspiration for any ladies. In order to get noticed instantly, pandora jewelry have the new philosophy of out standing fashion quality.So what is the best choice for you to show yourself .The answer is pandora bracelets.Full of colorful pandora charms can take you different visual effects. The Pandora range of rings is a wealth of beautiful gemstones and precious metals combined with fabulous design.So choose our pandora beads to witness the eternity and originality. pandora jewelry sale store offer pandora bracelets and pandora charms,choose varieties of cheap pandora charms from pandora bracelets sale outlet.up to 70% discount.
discount oakley...

Posts: 35
Registered: 8/20/11
Re: Lucene boolean query max clause count problem
Posted: Aug 20, 2011 4:19 AM   in response to: lauri in response to: lauri
 
  Click to reply to this thread Reply
Looking attractive and smart in the fingers of the other people has been the aspiration for any ladies. In order to get noticed instantly, pandora jewelry have the new philosophy of out standing fashion quality.So what is the best choice for you to show yourself .The answer is pandora bracelets.Full of colorful pandora charms can take you different visual effects. The Pandora range of rings is a wealth of beautiful gemstones and precious metals combined with fabulous design.So choose our pandora beads to witness the eternity and originality. pandora jewelry sale store offer pandora bracelets and pandora charms,choose varieties of cheap pandora charms from pandora bracelets sale outlet.up to 70% discount.
louisvuittonbox

Posts: 411
Registered: 8/23/11
Re: Lucene boolean query max clause count problem
Posted: Aug 23, 2011 9:41 PM   in response to: lauri in response to: lauri
 
  Click to reply to this thread Reply
Producing fabulous high end fashion year after year and season after season, gucci outlet is arguably the world's most prestigious designer of clothes. As you would expect from a gucci outlet online that started out solely making leather goods, they are best known for their classic range of gucci bags and gucci handbags which usually feature the trademark company logo or pattern and come either in leather or canvas finishes which look perfect when coupled with matching gucci shoes. Ladies Gucci Shoes are simply the perfect footwear for any occasion and here at Profile we stock a large selection including Gucci Boots, Flats and High Heels. They are designer shoes of the highest quality.
afra

Posts: 683
Registered: 8/10/11
tory burch
Posted: Sep 18, 2011 9:32 PM   in response to: lauri in response to: lauri
 
  Click to reply to this thread Reply
If you are interested in this tory burch wallet,welcome to our online store to buy tory burch handbags it. Here we provide several tory burch shoes styles and colors wallets for you to choose tory burch sale from. You also can choose to buy elegant tory burch boots. Take these tory burch flats to attend some fashion activities.
afra

Posts: 683
Registered: 8/10/11
discount puma shoes
Posted: Sep 18, 2011 9:47 PM   in response to: lauri in response to: lauri
 
  Click to reply to this thread Reply
The return with the discount puma shoes proved to be a productive more by simply puma store. With the new cheap puma shoes branch, discounted puma sneakers line is actually cashing in on puma shoes sale the limited updates, which frequently sell on puma shoes Outlet insane prices.
afra

Posts: 683
Registered: 8/10/11
christian louboutin shoes
Posted: Sep 18, 2011 10:02 PM   in response to: lauri in response to: lauri
 
  Click to reply to this thread Reply
It is worth you to buy christian louboutin shoes from our online store. Our discount christian louboutin shoes products possess high quality and fashion louboutin sale design. No matter what age you are, wearing this brand cheap louboutin store will make you look more young and louboutin pumps fashionable. The christian louboutin boots fashion world is waiting for you coming.
afra

Posts: 683
Registered: 8/10/11
ugg classic boots
Posted: Sep 18, 2011 10:14 PM   in response to: lauri in response to: lauri
 
  Click to reply to this thread Reply
I love the ugg classic boots. I thought that the right discount ugg boots one felt a little narrow around my big toe in the cheap ugg boots initial wears. Now they are perfect ugg boots clearance. I wear without ugg boots australia socks and I do not like the feel of the discount uggs boot with socks on.
afra

Posts: 683
Registered: 8/10/11
christian louboutin boots
Posted: Sep 18, 2011 10:33 PM   in response to: lauri in response to: lauri
 
  Click to reply to this thread Reply
At the first sight of the christian louboutin boots, I know the name, for the red discount louboutin shoes sole is apparent. In the cabinet, every woman should have pairs of cheap louboutin shoes. they will be your best love discount christian louboutin shoes, and will cherish them most. We can show the christian louboutin on sale in some famous parties,we will attract a lot of christian louboutin shoes people.
afra

Posts: 683
Registered: 8/10/11
cheap louboutins
Posted: Sep 18, 2011 10:45 PM   in response to: lauri in response to: lauri
 
  Click to reply to this thread Reply
This kind of cheap louboutins can make you be the focus and more shining in the discount christian louboutin shoes street by its perfect and fashionable christian louboutin on sale design. So if you want to be a fashion lady, you need have a pair of discount louboutin shoes. Come our christian louboutin shoes online and choose the best christian louboutin on sale style that you want.
afra

Posts: 683
Registered: 8/10/11
discount christian louboutin shoes
Posted: Sep 19, 2011 1:21 AM   in response to: lauri in response to: lauri
 
  Click to reply to this thread Reply
Since discount christian louboutin shoes sale at our online store, an increasing cheap louboutin shoes number of people would like to shopping christian louboutin on sale here. They believe our christian louboutin sneakers products are the best and cheapest, miss these discounted louboutin shoes they will regret. So they always do everything possible to get the latest christian louboutin store products and collect in the shoe cabinet.
Legend
Guru: 2001 + pts
Expert: 501 - 2000 pts
Super-star: 101 - 500 pts
Assistant: 51 - 100 pts
Participant: 0 - 50 pts
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums