wildcards in solr synonyms file

2010-08-09 Thread M.Rizwan
Hi,

I want to write an entry in solr synonyms file so that when i search for
word discount, solr return all records which have [10]% kind of words in
title.
So for example, i have a document
cars - 10% off
and I search for word "discount", this document should be returned aswell.

In synonyms file, I have written
discount => *%

but it didn't work. Any idea how to do this?

--
Riz


Changing schema and reindexing documents

2010-10-06 Thread M.Rizwan
Hi,

I have lots of documents in my solr index.
Now I have a requirement to change its schema and add a new field.

What should I do, so that all the documents keep working after schema
change?

Thanks

Riz


Searching problem

2010-11-12 Thread M.Rizwan
Hi All,

Do you have any idea that why solr search for "panasonic*" ( without
quotes ) does not match "panasonic" ?
If we search "panasonic" it matches a result but if we search with
"panasonic*" it does not find it.

What needs to be done here ?

Thanks

Riz


searching documents in solr

2010-05-26 Thread M.Rizwan
Hi All,

I have a strange problem. I have 3 documents in my solr index. Title is
default search field.
3 documents have titles *new1*, *new2*, *new3* respectively.

Now if I search for **new1* .. it does not return anything
but if I search for **new* .. it returns all 3 documents

Why is it behaving like this? It should return one post for the first case,
but its returning nothing.

Thanks

Riz


Query Question

2010-06-02 Thread M.Rizwan
Hi,

I have solr 1.4. In schema i have a field called "title" of type "text"
Now problem is, when I search for "Test_Title" it brings all documents with
titles like "Test-Title", "Test_Title", "Test,Title, "Test Title",
"Test.Title"
What to do to avoid this?

"Test_Title" should only return documents having title "Test_Title"

Any idea?

Thanks

- Riz