You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by pr...@ittc.ku.edu on 2005/12/19 01:51:49 UTC

Index Question

Hi,

I know that lucene index takes a directory of files to be indexed and
builds the index. Now is there a way to specify the number of files from
the directory to be indexed?

I mean if I have a directory of 10,000 files and I want an index of only
2000 files from these 10k files, how can specify the limit?

Thanks,

Praveen.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Index Question

Posted by pr...@ittc.ku.edu.
That helped thanx.

Praveen.


> Please try using the JDK from Sun.  I believe this is the issue
> you're having with Ant and compiling Lucene.
>
> 	Erik
>
>
> On Dec 18, 2005, at 9:07 PM, praveenl@ittc.ku.edu wrote:
>
>> Thanks for the reply. I thought of doing it. I downloaded the latest
>> source and tried to build it using ant. I am new to using 'ant'. It
>> gives
>> me an error and I think the problem is with 'rmic'. I never came
>> across
>> this before either. It says -
>>
>> BUILD FAILED
>> /projects/keyconcept/praveen/lucene-1.4.3/build.xml:145: Rmic
>> failed; see
>> the compiler error output for details.
>>
>> I am also attaching the output from ant. Is it a problem with the
>> installation of rmic or java or ant or am I doing something wrong?
>>
>> I dont know if this is the right place to ask this, but any help
>> will be
>> greatly appreciated.
>>
>> Thanks,
>>
>> Praveen.
>>
>>
>>> On 12/19/05, praveenl@ittc.ku.edu <pr...@ittc.ku.edu> wrote:
>>>> Hi,
>>>>
>>>> I know that lucene index takes a directory of files to be indexed
>>>> and
>>>> builds the index. Now is there a way to specify the number of
>>>> files from
>>>> the directory to be indexed?
>>>>
>>>> I mean if I have a directory of 10,000 files and I want an index
>>>> of only
>>>> 2000 files from these 10k files, how can specify the limit?
>>>>
>>>
>>> Lucene is only a search engine library. This means you can customize
>>> Lucene to behave exactly how you want it to behave. For your issue, I
>>> guess the fastest way is to modify the Lucene demo program to only
>>> read 2000 files instead of every single file in the directory.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>>
>>>
>>> <ant_op.txt>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Index Question

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Please try using the JDK from Sun.  I believe this is the issue  
you're having with Ant and compiling Lucene.

	Erik


On Dec 18, 2005, at 9:07 PM, praveenl@ittc.ku.edu wrote:

> Thanks for the reply. I thought of doing it. I downloaded the latest
> source and tried to build it using ant. I am new to using 'ant'. It  
> gives
> me an error and I think the problem is with 'rmic'. I never came  
> across
> this before either. It says -
>
> BUILD FAILED
> /projects/keyconcept/praveen/lucene-1.4.3/build.xml:145: Rmic  
> failed; see
> the compiler error output for details.
>
> I am also attaching the output from ant. Is it a problem with the
> installation of rmic or java or ant or am I doing something wrong?
>
> I dont know if this is the right place to ask this, but any help  
> will be
> greatly appreciated.
>
> Thanks,
>
> Praveen.
>
>
>> On 12/19/05, praveenl@ittc.ku.edu <pr...@ittc.ku.edu> wrote:
>>> Hi,
>>>
>>> I know that lucene index takes a directory of files to be indexed  
>>> and
>>> builds the index. Now is there a way to specify the number of  
>>> files from
>>> the directory to be indexed?
>>>
>>> I mean if I have a directory of 10,000 files and I want an index  
>>> of only
>>> 2000 files from these 10k files, how can specify the limit?
>>>
>>
>> Lucene is only a search engine library. This means you can customize
>> Lucene to behave exactly how you want it to behave. For your issue, I
>> guess the fastest way is to modify the Lucene demo program to only
>> read 2000 files instead of every single file in the directory.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>> <ant_op.txt>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Index Question

Posted by pr...@ittc.ku.edu.
Thanks for the reply. I thought of doing it. I downloaded the latest
source and tried to build it using ant. I am new to using 'ant'. It gives
me an error and I think the problem is with 'rmic'. I never came across
this before either. It says -

BUILD FAILED
/projects/keyconcept/praveen/lucene-1.4.3/build.xml:145: Rmic failed; see
the compiler error output for details.

I am also attaching the output from ant. Is it a problem with the
installation of rmic or java or ant or am I doing something wrong?

I dont know if this is the right place to ask this, but any help will be
greatly appreciated.

Thanks,

Praveen.


> On 12/19/05, praveenl@ittc.ku.edu <pr...@ittc.ku.edu> wrote:
>> Hi,
>>
>> I know that lucene index takes a directory of files to be indexed and
>> builds the index. Now is there a way to specify the number of files from
>> the directory to be indexed?
>>
>> I mean if I have a directory of 10,000 files and I want an index of only
>> 2000 files from these 10k files, how can specify the limit?
>>
>
> Lucene is only a search engine library. This means you can customize
> Lucene to behave exactly how you want it to behave. For your issue, I
> guess the fastest way is to modify the Lucene demo program to only
> read 2000 files instead of every single file in the directory.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: Index Question

Posted by Dave Kor <da...@gmail.com>.
On 12/19/05, praveenl@ittc.ku.edu <pr...@ittc.ku.edu> wrote:
> Hi,
>
> I know that lucene index takes a directory of files to be indexed and
> builds the index. Now is there a way to specify the number of files from
> the directory to be indexed?
>
> I mean if I have a directory of 10,000 files and I want an index of only
> 2000 files from these 10k files, how can specify the limit?
>

Lucene is only a search engine library. This means you can customize
Lucene to behave exactly how you want it to behave. For your issue, I
guess the fastest way is to modify the Lucene demo program to only
read 2000 files instead of every single file in the directory.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org