Why it doesn't work about IndexWriter deleteDocuments

2009-10-01 Thread Bon
Hi all, I've a problem about using IndexWriter#deleteDocuments to delete more then one document at once. the following is my code: Try 1: StringBuffer query_values = new StringBuffer(); query_values.append(UNIQUEID_FIELD_NAME); query_values.append(":(");

Re: What is the right query syntax for matching some field's substring?

2009-04-01 Thread Bon
r us. thank you very much =) Best Regards, Bon Matthew Hall-7 wrote: > > Which analyzer are you using here? Depending on your choice the comma > separated values might be being kept together in your index, rather than > tokenized as you expected. > > Secondly, you shou

Re: What is the right query syntax for matching some field's substring?

2009-04-01 Thread Bon
r us. thank you very much =) Best Regards, Bon Matthew Hall-7 wrote: > > Which analyzer are you using here? Depending on your choice the comma > separated values might be being kept together in your index, rather than > tokenized as you expected. > > Secondly, you shou

What is the right query syntax for matching some field's substring?

2009-03-31 Thread Bon
query like (filed_name:,11,) but it can not get the matching. or I must reformat the field value with some other symbol not the symbol comma ',' Bon -- View this message in context: http://www.nabble.com/What-is-the-right-query-syntax-for-matching-some-field%27s-substring--tp2281919

SpanNearQuery with support for missing words (Or?)

2006-07-08 Thread Jon Bon Jovi
Hello folks ! I'm looking for a way to search for a phrase, where in I shud get a hit even if some (N) words in the query phrase is not matching or even not inorder, i.e. it shud match maximum to the query string. I also need to get the Spans for the hits for highlighting. SpanNearQuery is quite