May I have "order expression" in Query?

2011-10-12 Thread Mead Lai
Hello all, Well, I add some document into index with "date" type : doc.add(new Field("datestamp", "20111012",Store.YES, Index.NOT_ANALYZED)); Then, I want to get the result order by "datestamp" field. I am really sorry aboutI am a newer and di

Re: Is there any "Query" in Lucene can search the term, which is similar as "SQL-LIKE"?

2011-10-12 Thread Mead Lai
While, I found "Range Searches", it would useful for this circumstance. Thank you. Regards, Mead On Thu, Oct 13, 2011 at 10:10 AM, Mead Lai wrote: > Thank you very much, > With your helps, that, finally, I use "WildcardQuery" to find right result: > BooleanQuery resultQuery = new BooleanQu

Re: Is there any "Query" in Lucene can search the term, which is similar as "SQL-LIKE"?

2011-10-12 Thread Mead Lai
Thank you very much, With your helps, that, finally, I use "WildcardQuery" to find right result: BooleanQuery resultQuery = new BooleanQuery(); resultQuery.add(WildcardQuery(new Term("content", "*keyword*")); TopDocs topDocs = searcher.search(resultQuery,*1000*); But there is also a pr

Payload Query and Document Boosts

2011-10-12 Thread Sujit Pal
Hi, Question about Payload Query and Document Boosts. We are using Lucene 3.2 and Payload queries, with our own PayloadSimilarity class which overrides the scorePayload method like so: {code} @Override public float scorePayload(int docId, String fieldName, int start, int end, byte[] pa