Scoring based on document

2012-10-22 Thread Siraj Haider
I am using DefaultSimilarity and did not boost any field while indexing. My index is comprised of the following fields: - Title - Author - Bookname - Description All of the 4 fields are indexed and can be searched on by the user. Now let's say the user sea

Re: understanding the need to reindex a document

2012-10-22 Thread Jack Krupansky
You can in fact add fields. And you can remove the value of a field for a single document. Both can be done by simply re-adding the document with the same unique key value. But that won't add that field to other or all documents, or remove the value of that field for all other documents. Re-in

Re: understanding the need to reindex a document

2012-10-22 Thread Rafał Kuć
Hello! This is because how the Lucene inverted index works and the amount of changes that would have to be done. However there is a work in progress issue - https://issues.apache.org/jira/browse/LUCENE-3837 There is some technical information there, so you may want to check it. -- Regards, Rafa

Re: understanding the need to reindex a document

2012-10-22 Thread Apostolis Xekoukoulotakis
I cant answer you that. But even if it is feasible, maybe the answer is that noone really needed it. 2012/10/22 Shaya Potter > I can understand that (i.e. why in place wont work), but the Q would be, > why one can't read in a document, add() or removeField() that document and > then updateDocume

Re: understanding the need to reindex a document

2012-10-22 Thread Shaya Potter
I can understand that (i.e. why in place wont work), but the Q would be, why one can't read in a document, add() or removeField() that document and then updateDocument() that document. On 10/22/2012 03:43 PM, Apostolis Xekoukoulotakis wrote: I am not that familiar with Lucene, so my answer may

Re: understanding the need to reindex a document

2012-10-22 Thread Apostolis Xekoukoulotakis
I am not that familiar with Lucene, so my answer may be a bit off. Search on the internet about log structured storage. There you will find why rewriting an entry is better than updating an existing entry. Leveldb/cassandra/bigTable use it. maybe search these terms as well. 2012/10/22 Shaya Pott

understanding the need to reindex a document

2012-10-22 Thread Shaya Potter
so there are lots of Qs that are asked about wanting to modify a lucene document (i.e. remove fields, add fields) but are told that one needs to reindex. No one ever answers the technical Q of why this is, and I'm interested in that. presumambly because documents aren't stored as document

Re: Restrict Lucene search in concrete document ids

2012-10-22 Thread sxam
Because that was still way too slow and I am looking whether I can use this information that I got (document Ids) to speed things up... -- View this message in context: http://lucene.472066.n3.nabble.com/Restrict-Lucene-search-in-concrete-document-ids-tp4013905p4015138.html Sent from the Lucene

Re: Restrict Lucene search in concrete document ids

2012-10-22 Thread Rafał Kuć
Hello! I think you should ask about Lucene.NET on the proper mailing list dedicated to it, instead on the current one which is dedicated to Java version of Lucene. You can find the proper mailing addresses here: http://lucenenet.apache.org/community.html -- Regards, Rafał Kuć Sematext :: htt

Re: Restrict Lucene search in concrete document ids

2012-10-22 Thread sxam
I work with Lucene.Net. , version 2.9 The code is : Searching: Filter filter = new PictureIdFilter( allowedResources ); TopDocs docs = searcher.Search( boolQuery, filter, documentCount ); ScoreDoc[] hits = docs.scoreDocs; And the filter is : class PictureIdFilter : Filter +{ +ILog lo

Re: Restrict Lucene search in concrete document ids

2012-10-22 Thread Ian Lea
Exactly what method in which class of which version of lucene are you trying to override? There is no "Bits" method. There is no "indexReader.Documents" method. I said this earlier in this thread: Presumably you're aware of the transient nature of lucene internal docids and the per-segment compl

Re: Removing Indexed field data.

2012-10-22 Thread Ian Lea
As Aditya said, you'll need to recreate that document. http://wiki.apache.org/lucene-java/LuceneFAQ#How_do_I_update_a_document_or_a_set_of_documents_that_are_already_indexed.3F The fact that you only want to remove one value is irrelevant. -- Ian. On Mon, Oct 22, 2012 at 12:56 PM, sagar.gole

Re: Removing Indexed field data.

2012-10-22 Thread sagar.gole8
Thank you Aditya, Actually, I want to remove only that value('Zokgh'), not that field or that document. Just remove the indexed entry of that value. Because that particular document or field contains other useful data. If u remove that document, the other data will lose. -- View this message in

Retrieval of the position of indexed terms

2012-10-22 Thread Pierre-Francois Marteau
Hi all, I am a recent user of the Lucene platform and have some difficulty to migrate from V3.6 to V4.0 a small IR fulltext application that requires to retrieve the positions of occurrence into the indexed documents of the query terms (I was using SpanQueries that are deprecated in the new ve

Re: Restrict Lucene search in concrete document ids

2012-10-22 Thread sxam
Hi, I try to set the filter but I encounter the following problem - while overriding Bits method, how do I know the document id from the indexReader I get in the method? I can see the documents by indexReader.Documents, but no id there.. -- View this message in context: http://lucene.472066.n3.

Re: Removing Indexed field data.

2012-10-22 Thread Aditya
You need to modify / re-index the document. You cannot delete a particular field. Re-index / update the document with blank / NULL value for the field. 1. Retrieve the document, 2. Set Blank value for the particular field 3. Update the document Regards Aditya www.findbestopensource.com On Mon,