flaxsearch / flaxcode

Automatically exported from code.google.com/p/flaxcode
4 stars 1 forks source link

Field 'filename' is too long: maximum length 220 - was 229 #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I Have a lot of folders and files which filename are deep and longer than 
the allowed maximum length (220)
Is there a way to increase this value at 250?

Original issue reported on code.google.com by robi...@gmail.com on 26 Jul 2008 at 8:22

GoogleCodeExporter commented 9 years ago
I can't find where we set a limit on path length in Flax, so I suspect this may 
be a
Python limit. In any case, the maximum path length on Windows is 260 characters.

A workaround would be to use a Windows mapped drive thus:

\somepath\---\----\somemore\someextra\filenamethatisverylong.doc

(--- represents some other parts of the path)

Create a mapped drive Z: that points to \somemore

Then index Z:\someextra\filenamethatisverylong.doc

Note that the mapped drive will have to be accessible from the account that Flax
uses: search the FAQ for " Why can't I index documents in a Windows shared 
folder?"
for more details.

Original comment by charliej...@gmail.com on 31 Jul 2008 at 1:27

GoogleCodeExporter commented 9 years ago
The limit is actually the Xapian limit on the length of a term (but tested in 
xappy
to ensure the error is returned at a useful point).  The suggested workaround is
still valid, though.

Original comment by boulton.rj@gmail.com on 31 Jul 2008 at 2:42

GoogleCodeExporter commented 9 years ago
Thank you very much for explanation.
Regards
Gerlando Roberto

Original comment by robi...@gmail.com on 11 Aug 2008 at 3:56

GoogleCodeExporter commented 9 years ago

Original comment by charliej...@gmail.com on 27 Aug 2009 at 1:24