lucene / Python

В дополнение к line.separator свойству при использовании java 1.5 или позже и String.format (или другой форматирование методы) можно использовать %n как в

Calendar c = ...;
String s = String.format("Duke's Birthday: %1$tm %1$te,%1$tY%n", c); 
//Note `%n` at end of line                                  ^^

String s2 = String.format("Use %%n as a platform independent newline.%n"); 
//         %% becomes %        ^^
//                                        and `%n` becomes newline   ^^

Посмотрите Java 1.8 API для Средства форматирования для получения дополнительной информации.

7
задан Srikar Appalaraju 11 December 2010 в 14:01
поделиться

2 ответа

PyLucene is a Python wrapper around Lucene. Therefore, you have to install Lucene as well, and its installation may be a bit complex (especially on Windows!)

8
ответ дан 6 December 2019 в 12:53
поделиться

You can't use Lucene itself from CPython without using a binary module, no.

You could use it directly from Jython, or you could use a Python port of Lucene, eg. Lupy (though Lupy is no longer under development).

If you're prepared to relax your non-binary requirement, PyLucene is a wrapper that embeds Java Lucene into Python.

This similar question offers some options: Is there a pure Python Lucene?

8
ответ дан 6 December 2019 в 12:53
поделиться
Другие вопросы по тегам:

Похожие вопросы: