You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by bin lin <do...@126.com> on 2011/06/29 03:15:33 UTC

Re: Creating vectors from a Lucene Index

Lahiru Samarakoon <lahiruts <at> gmail.com> writes:

> 
> Hi Claudia,
> 
> I had the same issue :). Now it is working.
> 
> Thank you !
> 
> Best Regards,
> Lahiru
> 


Hey, Claudia, can you tell me how to deal with the problem? Which should I 
modify in the program?


Re: Creating vectors from a Lucene Index

Posted by Hung Ta <xu...@gmail.com>.
Hi,

I have the same problem but still can write the vectors. I just can see the 
dictionary file but not the vector output file. Here are on my screen after 
running the commands:

12/05/25 19:12:51 INFO lucene.Driver: Output File: /tmp/myvect.txt
12/05/25 19:12:51 INFO util.NativeCodeLoader: Loaded the native-hadoop library
12/05/25 19:12:51 INFO zlib.ZlibFactory: Successfully loaded & initialized 
native-zlib library
12/05/25 19:12:51 INFO compress.CodecPool: Got brand-new compressor
12/05/25 19:12:51 INFO lucene.Driver: Wrote: 50 vectors
12/05/25 19:12:51 INFO lucene.Driver: Dictionary Output file: 
/home/notroot/dict.out
12/05/25 19:12:51 INFO driver.MahoutDriver: Program took 1004 ms (Minutes: 
0.016733333333333333)




Re: Creating vectors from a Lucene Index

Posted by bin lin <do...@126.com>.
Thank you. Samarakoon. I'll try it now. Hope it can work.








Lahiru Samarakoon <lahiruts <at> gmail.com> writes:

> 
> When you are adding fields to documents in creating the lucene index, you
> have to add the content mentioned in red. You have to rebuilt the lucene
> index.
> 
> d.add(new Field("fieldName", fieldContent, Field.Store.YES,
> Field.Index.ANALYZED,Field.TermVector.WITH_POSITIONS))
> 





Re: Creating vectors from a Lucene Index

Posted by Lahiru Samarakoon <la...@gmail.com>.
When you are adding fields to documents in creating the lucene index, you
have to add the content mentioned in red. You have to rebuilt the lucene
index.

d.add(new Field("fieldName", fieldContent, Field.Store.YES,
Field.Index.ANALYZED,Field.TermVector.WITH_POSITIONS))