In Solr 4.\* , suppose I have field `"mytext"`.

1. First record in "`mytext`" is "`working at ABC`".
2. Second record in "`mytext`" is "`working at ABC project ABC`".

Now When I am searching for "`Working at ABC`", then sequence of documents are 

**Doc 1**: "`Working at ABC project ABC`"

**Doc 2**: "`Working at ABC`" 

Although as per calculations it make sense, Second document should be on top because it contains "ABC" twice (TF higher for second doc).

But from user perspective when query entered "working at ABC" result should be 

```
"Working at ABC"

"Working at ABC project ABC"

```

.

How do I handle such scenarios. **This project occur only when "Company" and "Project" have overlapping data. Like in this case its "ABC"**.

Thanks

Amit Aggarwal