morphology and queryPrase

2008-07-11 Thread surfer10

Hello.

I have a question about morphology.
Currently i'm storing multiple form of words i.e. if word 'N' in sequence 'M
N K' leads to two normal forms 'Nf1' and 'Nf2' then i'm storing 'Mf Nf1 Nf2
Kf'

That allows me to search if user entered N2 (or any of its forms) as well as
any form of N1. Maybe i'm wrong in this concept, if so please advice how do
you manage morphology (of Russian for instance or any language where for
example: N1,N2,N3,N4,N5 can be the forms of word Nx and N1,N2,N6,N7,N8 can
be the forms of Ny and when user enters N2(or N1) we should search for
documents that containing Nx and Ny both - one form (N1) can lead to
multiple normal forms (Nx and Ny))

So i've choose this scheme and storing as described above. 
When i'm looking for words taking care of distance between them, i'm using
lucene syntax "A B"~distance... unfortunaly if A leads to A1 and A2 forms i
should split this into syntax +("A1 B"~dist "A2 B"~dist ") - this grows with
progression depending of normal forms quantity of each term.

Can i search within distance using something like (+(A1 A2) +(B))~dist...
i heard that dismax can handle distance between words ignoring quotes -
could you advice in this?

Thanx in advice.
-- 
View this message in context: 
http://www.nabble.com/morphology-and-queryPrase-tp18412375p18412375.html
Sent from the Solr - User mailing list archive at Nabble.com.



how can solr search angainst group of field

2009-01-19 Thread surfer10

Good days gentlemen.

in my search engine i have 4 groups of text:
1) user address
2) user description
3) ...
4) ...

I want to give users ability to search all of them with ability to
conjunction selection for searching some of them. conjunction means that
user should be able to search 1) and 2) fields, 1 AND 3 fields and so on.

I'm realizing how i can give them ability to search everywhere - it can be
archieved by copyFields parameter but how can user search for bunch of terms
in different groups?

now i'm using such syntax

+(default_field:WORD default_field:WORD2 default_field:WORD3)

if i want to give them oportunity to search by 2 of 4 fields, i should
repeat a construction?
i.e.

(field1:WORD field1:WORD2 field1:WORD3) (field2:WORD field2:WORD2
field2:WORD3) ?

is there any ability to specify field1,field2:TERM ?
-- 
View this message in context: 
http://www.nabble.com/how-can-solr-search-angainst-group-of-field-tp21557783p21557783.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: how can solr search angainst group of field

2009-01-22 Thread surfer10

definitly disMax do the thing by searching one term against multifield. but 
what if my index contains two additional multivalued fields like category id

i need to search against terms in particular fields of documents and dismax
do this well thru "qf=field1,field2"
how can i filter results which has only "1" or "2" or "3" in categoryID
field?

could you please help me to figure this?

-- 
View this message in context: 
http://www.nabble.com/how-can-solr-search-angainst-group-of-field-tp21557783p21619981.html
Sent from the Solr - User mailing list archive at Nabble.com.



question about dismax and parentheses

2009-01-27 Thread surfer10

Hello, dear members.
I'm a little bit confused about dismax syntax. as far as i know (and i might
be wrong) it supports default query language such as +WORD -WORD

What about parentheses ?

my title of doc consist of WORD1 WORD2 WORD3. when i'm trying to search
+WORD1 +(WORD2 WORD4) + WORD3 it does not match

how can i query for that?

also  could you please tell me ho can i search such construction as a
phrase?
-- 
View this message in context: 
http://www.nabble.com/question-about-dismax-and-parentheses-tp21699822p21699822.html
Sent from the Solr - User mailing list archive at Nabble.com.



[dummy question] applying patch

2009-01-27 Thread surfer10

i'm a little bit noob in java compiler so could you please tell me what tools
are used to apply patch SOLR-236 (Field groupping), does it need to be
applied on current solr-1.3 (and nightly builds of 1.4) or it already in
box?

what batch file stands for solr compilation in its distributive?
-- 
View this message in context: 
http://www.nabble.com/-dummy-question--applying-patch-tp21699846p21699846.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: question about dismax and parentheses

2009-01-27 Thread surfer10

i found Hoss's explanations at
http://www.nabble.com/Dismax-and-Grouping-query-td12938168.html#a12938168

seems to be i cant do this. so my question is transforming to following:

can i join multiple dismax queries into one? for instance if i'm looking for
+WORD1 +(WORD2 WORD3)
it can be translated into +WORD1 +WORD2 and +WORD1 +WORD3 query

or can i joing standartRequestHandler queries to different fields into one?

-- 
View this message in context: 
http://www.nabble.com/question-about-dismax-and-parentheses-tp21699822p21700182.html
Sent from the Solr - User mailing list archive at Nabble.com.



how to get total hits for the request?

2008-04-17 Thread surfer10

I'm using solr and unable to manage total number of document returned by
search?

how can i do this?
-- 
View this message in context: 
http://www.nabble.com/how-to-get-total-hits-for-the-request--tp16760375p16760375.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: how to get total hits for the request?

2008-04-18 Thread surfer10

i've explained my goal not clearly enougth.

I want to get TOTAL NUMBER of hits. Hits by themselves is not nessecary - i
know that i can control them by start & num parameters. But how can i get
the number of document matched by query?


Erik Hatcher wrote:
> 
> 
> On Apr 18, 2008, at 2:04 AM, surfer10 wrote:
>>
>> I'm using solr and unable to manage total number of document  
>> returned by
>> search?
>>
>> how can i do this?
> 
> &rows=37
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-get-total-hits-for-the-request--tp16760375p16770849.html
Sent from the Solr - User mailing list archive at Nabble.com.



Custom Filter. Pass field thru regular expression to match.

2008-04-25 Thread surfer10

My data, found with solr needs to be tested against matching regular
expression formed at auery time. to avoid sending big data chunks via http
i've suggested that results can be verified on solr side before they sent to
client.

I've heard that we can assign custom java function for filtering but what
about my own function that tests data against formed regexp?
-- 
View this message in context: 
http://www.nabble.com/Custom-Filter.-Pass-field-thru-regular-expression-to-match.-tp16893711p16893711.html
Sent from the Solr - User mailing list archive at Nabble.com.



XY Problem with regular expressions :)

2008-04-26 Thread surfer10

In my solr searching i need to calculate distance between words in html text
and also i need tracking if there any tag between words occures. i've used
the following structure:

field:data - tokenized, indexed, not stored. this is array of words.
field:data-orig - stored , not indexed. this is simplified html markup of
original doc

When search matches a document i need to test result against tag absence
between matched words. In my case, i've decided to do this with regex way,
checking that no <> (<>) entities occured between words. 

Currently i'm fetching data-orig and verifying it on client side deciding to
show or not this hit and than reconecting to solr to fetch more. This cause
huge amount of data being set to client.

I've decided that best way to regexp on server side. I've tried to inject
this at FQ paramenter but came to result that i need to modify lucene query
language in this case. I suppose that there is more easy way to do this.
Could you help me in this?
-- 
View this message in context: 
http://www.nabble.com/XY-Problem-with-regular-expressions-%3A%29-tp16914089p16914089.html
Sent from the Solr - User mailing list archive at Nabble.com.