Hi Ralf,
Queries like "+contents:whatever +(destination:1.40.44.* site:2)" should work correctly.
The problem is in the "1.40.44.*" parsing.
1) You should use TextNum analyzer for indexing and searching if you want numbers to be interpreted as parts of terms
2) '.' are treated as words delimiters. So 'destination:1.40.44.xx' is transformed to phrase: 'destination:"1 40 44 xx"', but if you use 'destination:1.40.44.*' you will get an exception 'Wildcard search is supported only for non-multiple word terms'.
Use your own analyzer or change '.' to some letter.
PS Keyword fields are intended for this case, but Zend_Search_Lucene query parser doesn't support non-tokenized fields now (see
http://framework.zend.com/issues/browse/ZF-623 for details).
With best regards,
Alexander Veremyev.
> -----Original Message-----
> From: Ralf Eggert [mailto:
[hidden email]]
> Sent: Thursday, January 17, 2008 10:56 AM
> To:
[hidden email]
> Cc: Alexander Veremyev
> Subject: Re: [fw-formats] Zend_Search_Lucene: combine
> wildcard search with other terms?
>
> Hi Alexander,
>
> sorry, must have missed your mail. Thanks for your reply.
>
> What I would like to do is send a query, which combines the
> wildcard search with other terms and even adds some boolean operator:
>
> +contents:whatever +(destination:1.40.44.* site:2)
>
> This should get all documents with the term "whatever" in the
> contents field AND (the wildcard value "1.40.44.*" in the
> destination field OR the value "2" in the site field).
>
> I was able to successfully process such a query with Luke
> 0.7.1 but I am afraid this is not possible with
> Zend_Search_Lucene (yet).
>
> If I am right and this is not possible yet and you are too
> busy to solve this issue in the nearby future, maybe you
> could be so kind to assist me in solving this for myself. I
> really do need this feature as soon as possible. Please
> advise and point my in the right direction!
>
> Thanks and Best Regards,
>
> Ralf
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.19.4/1227 - Release
> Date: 16.01.2008 1:40
>
>
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.4/1227 - Release Date: 16.01.2008 1:40