I have had Lucene search working on my site for a while but it's stopped returning results with the error:
ERROR: System error.
And sometimes:
System.IO.FileNotFoundException: Could not find file 'C:\Sites\britishlegion.org.uk\data\umbSearch\segments'.
The index itself builds fine but as soon as i search for something this error happens and the index is then locked so if a rebuild is attempted this error occurs:
The process cannot access the file 'C:\Sites\data\umbSearch\index_1e7.cfs' because it is being used by another process.
I thought it must be a permissions issue but i've given full control to the data directory to "everyone" as a test and the problem is still occuring.
Are you running v4RC ? I wonder if this is similar to what I experience , because lucene access problems also appear in my log (http://forum.umbraco.org/yafpostst7476After-installing-v4rc-with-boost-No-pages-found-appears.aspx)
No i'm running 3.0.5. I've actually just worked it out. I imported 2000 nodes recently. It appears that the sheer quantity of nodes has caused Lucene to fall over. The actual error was "TooManyClauses". I have now set Lucene to exclude this node type and it works again. However it's not a permanent solution as i need to search these nodes.
I have rebuilt it numerous times. The problem occurs on searching not on building. The only solution i can find other than to reduce the number of nodes searched is to amend the code in umbSearchControl.ascx.cs:
[code]
//add this line
BooleanQuery.maxClauseCount = 100000;
//above this line
IndexSearcher searcher = new IndexSearcher(businessLogic.Settings.IndexDirectory);
[/code]
The figure 10000 is an arbitary number higher than the number of nodes to be searched. I have no idea why this works as the error refers to the search query not the search itself.
i have come across this issue before when doing simliarity queries and the source document was too big but since your just doing standard search you should not be getting to many clauses error.
Might be worth adding the nodes again rebuild the index then try searching with luke and then looking at what you have in the index.
I don't really want to delete and add all those nodes again. I think i'll pay heed to your footer "If it aint broke dont fix" given that my code amend has fixed the problem for now.
There is another thread on here with the same issue...
this is the line where the error occurs
IndexWriter writer = new IndexWriter(Settings.IndexDirectory, new StandardAnalyzer(), true);
error
The process cannot access the file 'E:\umbraco\data\umbSearch\index_17.cfs' because it is being used by another process.
the first time is works fine but the second time i get the error.
i have to end the aspnetwp.exe process then i can reindex again.
I am using the umbracoExtsearch
[url]http://forum.umbraco.org/yafpostst5079p6_Getting-search-to-work--Heres-how-to-do-it.aspx[/url]
Lucene search problem
I have had Lucene search working on my site for a while but it's stopped returning results with the error:
ERROR: System error.
And sometimes:
System.IO.FileNotFoundException: Could not find file 'C:\Sites\britishlegion.org.uk\data\umbSearch\segments'.
The index itself builds fine but as soon as i search for something this error happens and the index is then locked so if a rebuild is attempted this error occurs:
The process cannot access the file 'C:\Sites\data\umbSearch\index_1e7.cfs' because it is being used by another process.
I thought it must be a permissions issue but i've given full control to the data directory to "everyone" as a test and the problem is still occuring.
Thanks in advance for any help!
Are you running v4RC ? I wonder if this is similar to what I experience , because lucene access problems also appear in my log (http://forum.umbraco.org/yafpostst7476After-installing-v4rc-with-boost-No-pages-found-appears.aspx)
No i'm running 3.0.5. I've actually just worked it out. I imported 2000 nodes recently. It appears that the sheer quantity of nodes has caused Lucene to fall over. The actual error was "TooManyClauses". I have now set Lucene to exclude this node type and it works again. However it's not a permanent solution as i need to search these nodes.
D
danimal,
Have you tried rebuilding the whole index?
Regards
Ismail
I have rebuilt it numerous times. The problem occurs on searching not on building. The only solution i can find other than to reduce the number of nodes searched is to amend the code in umbSearchControl.ascx.cs:
[code]
//add this line
BooleanQuery.maxClauseCount = 100000;
//above this line
IndexSearcher searcher = new IndexSearcher(businessLogic.Settings.IndexDirectory);
[/code]
The figure 10000 is an arbitary number higher than the number of nodes to be searched. I have no idea why this works as the error refers to the search query not the search itself.
Any ideas?
Dan
danimal,
i have come across this issue before when doing simliarity queries and the source document was too big but since your just doing standard search you should not be getting to many clauses error.
Might be worth adding the nodes again rebuild the index then try searching with luke and then looking at what you have in the index.
Regards
Ismial
I don't really want to delete and add all those nodes again. I think i'll pay heed to your footer "If it aint broke dont fix" given that my code amend has fixed the problem for now.
There is another thread on here with the same issue...
http://forum.umbraco.org/yafpostst6489error-TooManyClauses-System-error.aspx
Thanks
Dan
hi,
i'm having a similar problem with my indexing.
this is the line where the error occurs
IndexWriter writer = new IndexWriter(Settings.IndexDirectory, new StandardAnalyzer(), true);
error
The process cannot access the file 'E:\umbraco\data\umbSearch\index_17.cfs' because it is being used by another process.
the first time is works fine but the second time i get the error.
i have to end the aspnetwp.exe process then i can reindex again.
I am using the umbracoExtsearch
[url]http://forum.umbraco.org/yafpostst5079p6_Getting-search-to-work--Heres-how-to-do-it.aspx[/url]
any suggestions for fixing this problem?
Thanks,
Bart
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.