umco / umbraco-ezsearch

A simple search package for Umbraco
https://our.umbraco.org/projects/website-utilities/ezsearch
MIT License
6 stars 10 forks source link

handle Lucene.Net.Search.BooleanQuery.TooManyClauses #12

Open EnterpriseWide opened 9 years ago

EnterpriseWide commented 9 years ago

Hey there! I did 2 things:

  1. I added a do while loop (scary I know) to handle the TooManyClauses error which is only hit on a very very large number of words in the search string
  2. CTRL K + D to do a format.

I did a search with the following to make the change kick in. /search/?q=Hey+team%2C+++Just+wanted+to+let+everyone+know+that+the+new+ABO+site+has+gone+live+as+of+this+morning!+If+you+want+your+mind+blown+click+that+Buy+Tickets+at+the+top+and+watch+some+magic+happen.+++This+was+an+internally+funded+project+in+coordination+with+Accenture+Strategy%2C+Content+and+Fjord+and+an+excellent+case+study+for+how+we+can+all+work+together+to+produce+something+%28in+my+opinion%29+effing+awesome.+The+client+is+beyond+in+love+with+this+site+and+can%E2%80%99t+stop+raving+about+it.+++HUGE+SHOUTOUT+to+the+core+project+team+across+Sydney+and+NZ+consisting+of+Su+Jang%2C+Ben+Norman%2C+Zeb+Reynolds+and+Dixon+Cheng+with+support+at+various+times+from+way+too+many+people+to+list+but+you+know+who+you+are+and+how+much+we+appreciated+you+%28I%E2%80%99ll+shout+you+all+out+at+wrap+up%29+%EF%81%8A+++Bittersweet+moment+as+this+will+be+my+last+go-live+with+Reactive+but+honestly%2C+couldn%E2%80%99t+have+picked+a+better+project+to+finish+on.+++You+guys+should+be+extremely+proud%2C+I+know+I+am.+Accenture+will+be+doing+their+own+announcement+this+week+and+a+video+is+in+the+works+but+thought+you+should+all+know+first

Let me know how it goes